Files
ha-addons/ssh-bridge/sshd_config
T

29 lines
711 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
UsePAM no
# (Alpine's PAM rejects passwordless accounts as "locked" before key auth is
# tried; this container has no PAM-dependent needs — key-only by design.)
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