this repo has no description

fix: run sshd on 0.0.0.0:22 for Fly.io proxy compatibility

+6 -4
+2 -1
fly.toml
··· 19 20 [[services]] 21 protocol = 'tcp' 22 - internal_port = 2222 23 24 [[services.ports]] 25 port = 2222 26 27 [[vm]] 28 memory = '512mb'
··· 19 20 [[services]] 21 protocol = 'tcp' 22 + internal_port = 22 23 24 [[services.ports]] 25 port = 2222 26 + handlers = [] 27 28 [[vm]] 29 memory = '512mb'
+4 -3
start.sh
··· 15 # ensure git user owns home directory 16 chown -R git:git /home/git 17 18 - # configure sshd for knot 19 cat > /etc/ssh/sshd_config << 'EOF' 20 - Port 2222 21 HostKey /etc/ssh/keys/ssh_host_ed25519_key 22 HostKey /etc/ssh/keys/ssh_host_rsa_key 23 HostKey /etc/ssh/keys/ssh_host_ecdsa_key ··· 30 AuthorizedKeysCommandUser nobody 31 EOF 32 33 - # start sshd (port configured in sshd_config) 34 /usr/sbin/sshd -D -e & 35 36 # run knotserver as git user (foreground)
··· 15 # ensure git user owns home directory 16 chown -R git:git /home/git 17 18 + # configure sshd to listen on 0.0.0.0:22 for Fly.io proxy 19 cat > /etc/ssh/sshd_config << 'EOF' 20 + Port 22 21 + ListenAddress 0.0.0.0 22 HostKey /etc/ssh/keys/ssh_host_ed25519_key 23 HostKey /etc/ssh/keys/ssh_host_rsa_key 24 HostKey /etc/ssh/keys/ssh_host_ecdsa_key ··· 31 AuthorizedKeysCommandUser nobody 32 EOF 33 34 + # start sshd on 0.0.0.0:22 (Fly proxy requires this) 35 /usr/sbin/sshd -D -e & 36 37 # run knotserver as git user (foreground)