# Harbor bastion sshd configuration (managed by ops; see deploy/README)
Port 22
AddressFamily any
ListenAddress 0.0.0.0

HostKey /etc/ssh/ssh_host_ed25519_key

KexAlgorithms curve25519-sha256,ecdh-sha2-nistp256,diffie-hellman-group14-sha256,diffie-hellman-group1-sha1
HostKeyAlgorithms ssh-ed25519,rsa-sha2-512,ssh-rsa
PubkeyAcceptedAlgorithms ssh-ed25519,ecdsa-sha2-nistp256,rsa-sha2-512

PermitRootLogin no
PasswordAuthentication no
KbdInteractiveAuthentication no
UsePAM yes
X11Forwarding no
AllowGroups ops deploy
Subsystem sftp /usr/lib/openssh/sftp-server
