sshd_config 678 B

1234567891011121314151617181920212223242526272829303132333435
  1. Port 22
  2. Protocol 2
  3. HostKey /etc/ssh/ssh_host_rsa_key
  4. HostKey /etc/ssh/ssh_host_dsa_key
  5. HostKey /etc/ssh/ssh_host_ecdsa_key
  6. HostKey /etc/ssh/ssh_host_ed25519_key
  7. UsePrivilegeSeparation yes
  8. #KeyRegenerationInterval 3600
  9. #ServerKeyBits 1024
  10. SyslogFacility AUTH
  11. LogLevel INFO
  12. LoginGraceTime 120
  13. PermitRootLogin without-password
  14. StrictModes yes
  15. #RSAAuthentication yes
  16. PubkeyAuthentication yes
  17. AuthorizedKeysFile /etc/ssh/keys/authorized_keys
  18. IgnoreRhosts yes
  19. #RhostsRSAAuthentication no
  20. HostbasedAuthentication no
  21. PermitEmptyPasswords no
  22. ChallengeResponseAuthentication no
  23. PrintMotd no
  24. PrintLastLog yes
  25. TCPKeepAlive yes
  26. Subsystem sftp /usr/lib/openssh/sftp-server
  27. UsePAM yes