Advertisement
msx

Untitled

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