Advertisement
Guest User

Untitled

a guest
Jan 8th, 2014
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. # $OpenBSD: sshd_config,v 1.90 2013/05/16 04:09:14 dtucker Exp $
  2.  
  3. # This is the sshd server system-wide configuration file. See
  4. # sshd_config(5) for more information.
  5.  
  6. # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
  7.  
  8. # The strategy used for options in the default sshd_config shipped with
  9. # OpenSSH is to specify options with their default value where
  10. # possible, but leave them commented. Uncommented options override the
  11. # default value.
  12.  
  13. #Port 22
  14. #AddressFamily any
  15. #ListenAddress 0.0.0.0
  16. #ListenAddress ::
  17.  
  18. # The default requires explicit activation of protocol 1
  19. #Protocol 2
  20.  
  21. # HostKey for protocol version 1
  22. #HostKey /etc/ssh/ssh_host_key
  23. # HostKeys for protocol version 2
  24. #HostKey /etc/ssh/ssh_host_rsa_key
  25. #HostKey /etc/ssh/ssh_host_dsa_key
  26. #HostKey /etc/ssh/ssh_host_ecdsa_key
  27.  
  28. # Lifetime and size of ephemeral version 1 server key
  29. #KeyRegenerationInterval 1h
  30. #ServerKeyBits 1024
  31.  
  32. # Ciphers and keying
  33. #RekeyLimit default none
  34.  
  35. # Logging
  36. # obsoletes QuietMode and FascistLogging
  37. #SyslogFacility AUTH
  38. #LogLevel INFO
  39.  
  40. # Authentication:
  41.  
  42. #LoginGraceTime 2m
  43. #PermitRootLogin yes
  44. #StrictModes yes
  45. #MaxAuthTries 6
  46. #MaxSessions 10
  47.  
  48. #RSAAuthentication yes
  49. #PubkeyAuthentication yes
  50.  
  51. # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
  52. # but this is overridden so installations will only check .ssh/authorized_keys
  53. AuthorizedKeysFile .ssh/authorized_keys
  54.  
  55. #AuthorizedPrincipalsFile none
  56.  
  57. #AuthorizedKeysCommand none
  58. #AuthorizedKeysCommandUser nobody
  59.  
  60. # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
  61. #RhostsRSAAuthentication no
  62. # similar for protocol version 2
  63. #HostbasedAuthentication no
  64. # Change to yes if you don't trust ~/.ssh/known_hosts for
  65. # RhostsRSAAuthentication and HostbasedAuthentication
  66. #IgnoreUserKnownHosts no
  67. # Don't read the user's ~/.rhosts and ~/.shosts files
  68. #IgnoreRhosts yes
  69.  
  70. # To disable tunneled clear text passwords, change to no here!
  71. #PasswordAuthentication yes
  72. #PermitEmptyPasswords no
  73.  
  74. # Change to no to disable s/key passwords
  75. ChallengeResponseAuthentication no
  76.  
  77. # Kerberos options
  78. #KerberosAuthentication no
  79. #KerberosOrLocalPasswd yes
  80. #KerberosTicketCleanup yes
  81. #KerberosGetAFSToken no
  82.  
  83. # GSSAPI options
  84. #GSSAPIAuthentication no
  85. #GSSAPICleanupCredentials yes
  86.  
  87. # Set this to 'yes' to enable PAM authentication, account processing,
  88. # and session processing. If this is enabled, PAM authentication will
  89. # be allowed through the ChallengeResponseAuthentication and
  90. # PasswordAuthentication. Depending on your PAM configuration,
  91. # PAM authentication via ChallengeResponseAuthentication may bypass
  92. # the setting of "PermitRootLogin without-password".
  93. # If you just want the PAM account and session checks to run without
  94. # PAM authentication, then enable this but set PasswordAuthentication
  95. # and ChallengeResponseAuthentication to 'no'.
  96. UsePAM yes
  97.  
  98. #AllowAgentForwarding yes
  99. AllowTcpForwarding yes
  100. #GatewayPorts no
  101. X11Forwarding yes
  102. X11DisplayOffset 10
  103. X11UseLocalhost yes
  104. PrintMotd no # pam does that
  105. #PrintLastLog yes
  106. #TCPKeepAlive yes
  107. #UseLogin no
  108. UsePrivilegeSeparation sandbox # Default for new installations.
  109. #PermitUserEnvironment no
  110. Compression yes
  111. #ClientAliveInterval 0
  112. #ClientAliveCountMax 3
  113. #UseDNS yes
  114. #PidFile /run/sshd.pid
  115. #MaxStartups 10:30:100
  116. #PermitTunnel no
  117. #ChrootDirectory none
  118. #VersionAddendum none
  119.  
  120. # no default banner path
  121. #Banner none
  122.  
  123. # override default of no subsystems
  124. Subsystem sftp /usr/lib/ssh/sftp-server
  125.  
  126. # Example of overriding settings on a per-user basis
  127. #Match User anoncvs
  128. # X11Forwarding no
  129. # AllowTcpForwarding no
  130. # ForceCommand cvs server
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement