# 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) and -L jumps; everything else off
AllowTcpForwarding yes
AllowAgentForwarding no
PermitTunnel no
X11Forwarding no
GatewayPorts no

# Housekeeping
ClientAliveInterval 60
ClientAliveCountMax 3
LogLevel INFO
