Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. # Package generated configuration file
  2. # See the sshd_config(5) manpage for details
  3.  
  4. # What ports, IPs and protocols we listen for
  5. Port 22
  6. # Use these options to restrict which interfaces/protocols sshd will bind to
  7. #ListenAddress ::
  8. #ListenAddress 0.0.0.0
  9. Protocol 2
  10. # HostKeys for protocol version 2
  11. HostKey /etc/ssh/ssh_host_rsa_key
  12. HostKey /etc/ssh/ssh_host_dsa_key
  13. HostKey /etc/ssh/ssh_host_ecdsa_key
  14. #Privilege Separation is turned on for security
  15. UsePrivilegeSeparation yes
  16.  
  17. # Lifetime and size of ephemeral version 1 server key
  18. KeyRegenerationInterval 3600
  19. ServerKeyBits 768
  20.  
  21. # Logging
  22. SyslogFacility AUTH
  23. LogLevel INFO
  24.  
  25. # Authentication:
  26. LoginGraceTime 30
  27. PermitRootLogin no
  28. StrictModes yes
  29. RSAAuthentication yes
  30. PubkeyAuthentication yes
  31. AuthorizedKeysFile %h/.ssh/authorized_keys
  32.  
  33. # Don't read the user's ~/.rhosts and ~/.shosts files
  34. IgnoreRhosts yes
  35. # For this to work you will also need host keys in /etc/ssh_known_hosts
  36. RhostsRSAAuthentication no
  37. # similar for protocol version 2
  38. HostbasedAuthentication no
  39. # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
  40. #IgnoreUserKnownHosts yes
  41.  
  42. # To enable empty passwords, change to yes (NOT RECOMMENDED)
  43. PermitEmptyPasswords no
  44.  
  45. # Change to yes to enable challenge-response passwords (beware issues with
  46. # some PAM modules and threads)
  47. ChallengeResponseAuthentication no
  48.  
  49. # Change to no to disable tunnelled clear text passwords
  50. PasswordAuthentication no
  51. UsePAM no
  52.  
  53.  
  54. # Kerberos options
  55. #KerberosAuthentication no
  56. #KerberosGetAFSToken no
  57. #KerberosOrLocalPasswd yes
  58. #KerberosTicketCleanup yes
  59.  
  60. # GSSAPI options
  61. #GSSAPIAuthentication no
  62. #GSSAPICleanupCredentials yes
  63.  
  64. X11Forwarding yes
  65. X11DisplayOffset 10
  66. PrintMotd no
  67. PrintLastLog yes
  68. TCPKeepAlive yes
  69. #UseLogin no
  70.  
  71. #MaxStartups 10:30:60
  72. #Banner /etc/issue.net
  73.  
  74. # Allow client to pass locale environment variables
  75. AcceptEnv LANG LC_*
  76.  
  77.  
  78. # Set this to 'yes' to enable PAM authentication, account processing,
  79. # and session processing. If this is enabled, PAM authentication will
  80. # be allowed through the ChallengeResponseAuthentication and
  81. # PasswordAuthentication. Depending on your PAM configuration,
  82. # PAM authentication via ChallengeResponseAuthentication may bypass
  83. # the setting of "PermitRootLogin without-password".
  84. # If you just want the PAM account and session checks to run without
  85. # PAM authentication, then enable this but set PasswordAuthentication
  86. # and ChallengeResponseAuthentication to 'no'.
  87.  
  88.  
  89. Subsystem sftp internal-sftp
  90.  
  91. Match User thomas
  92. ChrootDirectory /home/thomas/Thomas
  93. AllowTCPForwarding no
  94. X11Forwarding no
  95. ForceCommand internal-sftp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement