migrate to alpine image

This commit is contained in:
mercury
2023-06-23 01:31:55 +04:00
parent 0731f5e987
commit c421dc29b7
21 changed files with 300 additions and 186 deletions
+3 -4
View File
@@ -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