blob: e16aac7bafcf33d71534207583d7ac3b5d82e4f6 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
#!/usr/bin/env bash
# shellcheck disable=SC2016
echo '$SSH_SERVER_PRIVATE_KEY' > /etc/ssh/vps-box-server
chmod 600 /etc/ssh/vps-box-server
echo '$SSH_SERVER_PUBLIC_KEY' > /etc/ssh/vps-box-server.pub
echo 'HostKey /etc/ssh/vps-box-server' >> /etc/ssh/sshd_config
systemctl restart sshd
|