Advertisement
alaestor

sshd_config

Jun 26th, 2021
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. # NOTE as per https://infosec.mozilla.org/guidelines/openssh
  2. # awk '$5 >= 3071' /etc/ssh/moduli > /etc/ssh/moduli.tmp && mv /etc/ssh/moduli.tmp /etc/ssh/moduli
  3.  
  4. HostKey /etc/ssh/ssh_host_ed25519_key
  5. HostKey /etc/ssh/ssh_host_rsa_key
  6. HostKey /etc/ssh/ssh_host_ecdsa_key
  7.  
  8. KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256
  9.  
  10. Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
  11.  
  12. MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com
  13.  
  14. AuthenticationMethods publickey
  15. LogLevel INFO
  16. Subsystem sftp /usr/lib/ssh/sftp-server -f AUTHPRIV -l INFO
  17. PermitRootLogin No
  18. UsePrivilegeSeparation sandbox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement