docker-ssh-jumphost/sshd_config

18 lines
419 B
Plaintext
Raw Normal View History

2023-01-28 12:51:01 +00:00
PermitRootLogin no
ChallengeResponseAuthentication no
PasswordAuthentication no
AuthenticationMethods publickey
PubkeyAuthentication yes
AllowUsers bastion
2023-01-28 11:49:03 +00:00
PermitTTY no
X11Forwarding no
PermitTunnel no
GatewayPorts no
2023-01-28 12:51:01 +00:00
HostKey /config/ssh_host_ed25519_key
HostKey /config/ssh_host_rsa_key
Port 2222
2023-01-28 11:49:03 +00:00
ForceCommand /sbin/nologin
Match User bastion
AllowTcpForwarding yes
AuthorizedKeysFile /config/authorized_keys