sshd_config 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 29418
  5. # Use these options to restrict which interfaces/protocols sshd will bind to
  6. ListenAddress 0.0.0.0
  7. Protocol 2
  8. # HostKeys for protocol version 2
  9. HostKey /app/data/sshd/ssh_host_rsa_key
  10. HostKey /app/data/sshd/ssh_host_dsa_key
  11. HostKey /app/data/sshd/ssh_host_ecdsa_key
  12. HostKey /app/data/sshd/ssh_host_ed25519_key
  13. # Logging
  14. SyslogFacility AUTH
  15. LogLevel INFO
  16. # Authentication:
  17. LoginGraceTime 120
  18. PermitRootLogin prohibit-password
  19. StrictModes yes
  20. PubkeyAuthentication yes
  21. #AuthorizedKeysFile %h/.ssh/authorized_keys
  22. # Don't read the user's ~/.rhosts and ~/.shosts files
  23. IgnoreRhosts yes
  24. # similar for protocol version 2
  25. HostbasedAuthentication no
  26. # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
  27. #IgnoreUserKnownHosts yes
  28. # To enable empty passwords, change to yes (NOT RECOMMENDED)
  29. PermitEmptyPasswords no
  30. # Change to yes to enable challenge-response passwords (beware issues with
  31. # some PAM modules and threads)
  32. ChallengeResponseAuthentication no
  33. # Change to no to disable tunnelled clear text passwords
  34. #PasswordAuthentication yes
  35. # Kerberos options
  36. #KerberosAuthentication no
  37. #KerberosGetAFSToken no
  38. #KerberosOrLocalPasswd yes
  39. #KerberosTicketCleanup yes
  40. # GSSAPI options
  41. #GSSAPIAuthentication no
  42. #GSSAPICleanupCredentials yes
  43. X11Forwarding yes
  44. X11DisplayOffset 10
  45. PrintMotd no
  46. PrintLastLog yes
  47. TCPKeepAlive yes
  48. #UseLogin no
  49. #MaxStartups 10:30:60
  50. #Banner /etc/issue.net
  51. # Allow client to pass locale environment variables
  52. AcceptEnv LANG LC_*
  53. Subsystem sftp /usr/lib/openssh/sftp-server
  54. # Set this to 'yes' to enable PAM authentication, account processing,
  55. # and session processing. If this is enabled, PAM authentication will
  56. # be allowed through the ChallengeResponseAuthentication and
  57. # PasswordAuthentication. Depending on your PAM configuration,
  58. # PAM authentication via ChallengeResponseAuthentication may bypass
  59. # the setting of "PermitRootLogin without-password".
  60. # If you just want the PAM account and session checks to run without
  61. # PAM authentication, then enable this but set PasswordAuthentication
  62. # and ChallengeResponseAuthentication to 'no'.
  63. UsePAM no
  64. UseDNS no