sshd_config 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Package generated configuration file
  2. # See the sshd_config(5) manpage for details
  3. Port 2827
  4. ListenAddress 127.0.0.1
  5. Protocol 2
  6. #UsePrivilegeSeparation yes
  7. # Turn strict modes off so that we can operate in /tmp
  8. StrictModes no
  9. # Lifetime and size of ephemeral version 1 server key
  10. #KeyRegenerationInterval 3600
  11. #ServerKeyBits 1024
  12. # Logging
  13. SyslogFacility AUTH
  14. LogLevel INFO
  15. # Authentication:
  16. LoginGraceTime 120
  17. PermitRootLogin without-password
  18. StrictModes yes
  19. #RSAAuthentication yes
  20. PubkeyAuthentication yes
  21. #AuthorizedKeysFile %h/.ssh/authorized_keys
  22. #AuthorizedKeysFile key_test.pub
  23. # Don't read the user's ~/.rhosts and ~/.shosts files
  24. IgnoreRhosts yes
  25. # For this to work you will also need host keys in /etc/ssh_known_hosts
  26. #RhostsRSAAuthentication no
  27. # similar for protocol version 2
  28. HostbasedAuthentication no
  29. #IgnoreUserKnownHosts yes
  30. # To enable empty passwords, change to yes (NOT RECOMMENDED)
  31. PermitEmptyPasswords no
  32. # Change to yes to enable challenge-response passwords (beware issues with
  33. # some PAM modules and threads)
  34. ChallengeResponseAuthentication no
  35. # Change to no to disable tunnelled clear text passwords
  36. PasswordAuthentication no
  37. X11Forwarding no
  38. X11DisplayOffset 10
  39. PrintMotd no
  40. PrintLastLog yes
  41. TCPKeepAlive yes
  42. #UseLogin no
  43. AcceptEnv LANG LC_*
  44. Subsystem sftp /usr/lib/openssh/sftp-server
  45. UsePAM yes