sshd.j2 721 B

123456789101112131415161718192021
  1. # Override Debian
  2. #ChallengeResponseAuthentication no
  3. X11Forwarding no
  4. #PrintMotd no
  5. #AcceptEnv LANG LC_*
  6. #Subsystem sftp /usr/lib/openssh/sftp-server # Overriden below
  7. #UsePAM yes
  8. # Prefered hostkey order
  9. HostKey /etc/ssh/ssh_host_ed25519_key
  10. #HostKey /etc/ssh/ssh_host_rsa_key
  11. #HostKey /etc/ssh/ssh_host_ecdsa_key
  12. # Restricted KEX/MAC/Ciphers
  13. KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256
  14. Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes256-ctr
  15. MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-256
  16. # Keys only, no root
  17. AuthenticationMethods publickey
  18. PermitRootLogin No