migrate to alpine image
This commit is contained in:
+3
-4
@@ -1,8 +1,7 @@
|
||||
cat /ssh/key.pub > /root/.ssh/authorized_keys
|
||||
echo 'HostKeyAlgorithms +ssh-rsa' >> /etc/ssh/sshd_config
|
||||
echo 'PubkeyAcceptedKeyTypes +ssh-rsa' >> /etc/ssh/sshd_config
|
||||
service ssh start
|
||||
ssh-keygen -A
|
||||
exec /usr/sbin/sshd -D -e "$@" &
|
||||
sed "s/\"server_port\": [0-9]\+/\"server_port\": $SSPORT/" /config.json > change_port
|
||||
cat change_port > /config.json
|
||||
/ssserver -v -d -c /config.json
|
||||
ssserver -v -d -c /config.json
|
||||
tail -f /dev/null
|
||||
|
||||
Reference in New Issue
Block a user