docker-ssh-jumphost/sshd_config
2023-01-28 13:52:27 +01:00

18 lines
419 B
Plaintext
Executable File

PermitRootLogin no
ChallengeResponseAuthentication no
PasswordAuthentication no
AuthenticationMethods publickey
PubkeyAuthentication yes
AllowUsers bastion
PermitTTY no
X11Forwarding no
PermitTunnel no
GatewayPorts no
HostKey /config/ssh_host_ed25519_key
HostKey /config/ssh_host_rsa_key
Port 2222
ForceCommand /sbin/nologin
Match User bastion
AllowTcpForwarding yes
AuthorizedKeysFile /config/authorized_keys