Nenhuma descrição

sshd_config 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # Package generated configuration file
  2. # See the sshd_config(5) manpage for details
  3. # What ports, IPs and protocols we listen for
  4. Port 123
  5. # Use these options to restrict which interfaces/protocols sshd will bind to
  6. #ListenAddress ::
  7. #ListenAddress 0.0.0.0
  8. Protocol 2
  9. # HostKeys for protocol version 2
  10. HostKey /etc/ssh/ssh_host_rsa_key
  11. HostKey /etc/ssh/ssh_host_dsa_key
  12. HostKey /etc/ssh/ssh_host_ecdsa_key
  13. HostKey /etc/ssh/ssh_host_ed25519_key
  14. #Privilege Separation is turned on for security
  15. UsePrivilegeSeparation yes
  16. # Lifetime and size of ephemeral version 1 server key
  17. KeyRegenerationInterval 3600
  18. ServerKeyBits 1024
  19. # Logging
  20. SyslogFacility AUTH
  21. LogLevel INFO
  22. # Authentication:
  23. LoginGraceTime 120
  24. PermitRootLogin without-password
  25. StrictModes yes
  26. RSAAuthentication yes
  27. PubkeyAuthentication yes
  28. #AuthorizedKeysFile %h/.ssh/authorized_keys
  29. # Don't read the user's ~/.rhosts and ~/.shosts files
  30. IgnoreRhosts yes
  31. # For this to work you will also need host keys in /etc/ssh_known_hosts
  32. RhostsRSAAuthentication no
  33. # similar for protocol version 2
  34. HostbasedAuthentication no
  35. # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
  36. #IgnoreUserKnownHosts yes
  37. # To enable empty passwords, change to yes (NOT RECOMMENDED)
  38. PermitEmptyPasswords no
  39. # Change to yes to enable challenge-response passwords (beware issues with
  40. # some PAM modules and threads)
  41. ChallengeResponseAuthentication no
  42. # Change to no to disable tunnelled clear text passwords
  43. PasswordAuthentication no
  44. # Kerberos options
  45. #KerberosAuthentication no
  46. #KerberosGetAFSToken no
  47. #KerberosOrLocalPasswd yes
  48. #KerberosTicketCleanup yes
  49. # GSSAPI options
  50. #GSSAPIAuthentication no
  51. #GSSAPICleanupCredentials yes
  52. X11Forwarding yes
  53. X11DisplayOffset 10
  54. PrintMotd no
  55. PrintLastLog yes
  56. TCPKeepAlive yes
  57. #UseLogin no
  58. #MaxStartups 10:30:60
  59. #Banner /etc/issue.net
  60. # Allow client to pass locale environment variables
  61. AcceptEnv LANG LC_*
  62. Subsystem sftp /usr/lib/openssh/sftp-server
  63. # Set this to 'yes' to enable PAM authentication, account processing,
  64. # and session processing. If this is enabled, PAM authentication will
  65. # be allowed through the ChallengeResponseAuthentication and
  66. # PasswordAuthentication. Depending on your PAM configuration,
  67. # PAM authentication via ChallengeResponseAuthentication may bypass
  68. # the setting of "PermitRootLogin without-password".
  69. # If you just want the PAM account and session checks to run without
  70. # PAM authentication, then enable this but set PasswordAuthentication
  71. # and ChallengeResponseAuthentication to 'no'.
  72. UsePAM yes