build better ssh

This commit is contained in:
Mikan
2026-10-07 18:53:14 +04:00
parent f58824c95e
commit b5060ddb8b
2 changed files with 51 additions and 5 deletions

View File

@@ -7,4 +7,6 @@ chown -R operator:operator /home/operator/.ssh
chmod 700 /home/operator/.ssh
chmod 600 /home/operator/.ssh/authorized_keys
exec /usr/sbin/sshd -D -e
SSH_PORT="${SSH_PORT:-22}"
exec /usr/sbin/sshd -D -e -p "$SSH_PORT"