Files
ha-addons/ssh-bridge/sshd_config
T

31 lines
853 B
Plaintext

# ssh-bridge sshd — key-only, forward-only jump host.
Port 2222
ListenAddress 0.0.0.0
HostKey /data/ssh/ssh_host_ed25519_key
# Hard limits
# (No UsePAM here: Alpine's OpenSSH is built without PAM and rejects the
# option. The "account is locked" check is OpenSSH's own; the bridge account
# is unlocked in the Dockerfile instead.)
PermitRootLogin no
PasswordAuthentication no
KbdInteractiveAuthentication no
PubkeyAuthentication yes
AllowUsers bridge
AuthorizedKeysFile /share/ssh-bridge/authorized_keys
# Required for -D (SOCKS), -W (ProxyJump) and git-over-ssh; everything else off.
# No ForceCommand: non-interactive 'ssh host cmd' must work (git push/pull).
AllowTcpForwarding yes
AllowAgentForwarding no
PermitTunnel no
X11Forwarding no
GatewayPorts no
MaxSessions 20
# Housekeeping
ClientAliveInterval 60
ClientAliveCountMax 3
LogLevel INFO