Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. # $OpenBSD: sshd_config,v 1.72 2005/07/25 11:59:40 markus 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 change a
  11. # default value.
  12.  
  13. Port 22
  14. Protocol 2
  15. # AddressFamily any
  16. # ListenAddress 0.0.0.0
  17. # ListenAddress ::
  18.  
  19. # HostKey for protocol version 1
  20. # HostKey /etc/ssh/ssh_host_key
  21. # HostKeys for protocol version 2
  22. # HostKey /etc/ssh/ssh_host_rsa_key
  23. # HostKey /etc/ssh/ssh_host_dsa_key
  24.  
  25. # Lifetime and size of ephemeral version 1 server key
  26. KeyRegenerationInterval 1h
  27. ServerKeyBits 768
  28.  
  29. # Logging
  30. # obsoletes QuietMode and FascistLogging
  31. SyslogFacility AUTH
  32. LogLevel INFO
  33.  
  34. # Authentication:
  35.  
  36. LoginGraceTime 2m
  37. PermitRootLogin yes
  38. StrictModes yes
  39. MaxAuthTries 2
  40.  
  41. RSAAuthentication yes
  42. PubkeyAuthentication yes
  43. AuthorizedKeysFile .ssh/authorized_keys
  44.  
  45. # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
  46. RhostsRSAAuthentication no
  47. # similar for protocol version 2
  48. HostbasedAuthentication no
  49. # Change to yes if you don't trust ~/.ssh/known_hosts for
  50. # RhostsRSAAuthentication and HostbasedAuthentication
  51. IgnoreUserKnownHosts no
  52. # Don't read the user's ~/.rhosts and ~/.shosts files
  53. IgnoreRhosts yes
  54.  
  55. # To disable tunneled clear text passwords, change to no here!
  56. PasswordAuthentication no
  57. PermitEmptyPasswords no
  58.  
  59. # Change to no to disable s/key passwords
  60. ChallengeResponseAuthentication yes
  61.  
  62. # Kerberos options
  63. KerberosAuthentication no
  64. #KerberosOrLocalPasswd yes
  65. #KerberosTicketCleanup yes
  66. #KerberosGetAFSToken no
  67.  
  68. # GSSAPI options
  69. GSSAPIAuthentication no
  70. #GSSAPICleanupCredentials yes
  71.  
  72. # Set this to 'yes' to enable support for the deprecated 'gssapi' authentication
  73.  
  74. # mechanism to OpenSSH 3.8p1. The newer 'gssapi-with-mic' mechanism is included
  75. # in this release. The use of 'gssapi' is deprecated due to the presence of
  76. # potential man-in-the-middle attacks, which 'gssapi-with-mic' is not susceptibl
  77. e to.
  78. #GSSAPIEnableMITMAttack no
  79.  
  80.  
  81. # Set this to 'yes' to enable PAM authentication, account processing,
  82. # and session processing. If this is enabled, PAM authentication will
  83. # be allowed through the ChallengeResponseAuthentication mechanism.
  84. # Depending on your PAM configuration, this may bypass the setting of
  85. # PasswordAuthentication, PermitEmptyPasswords, and
  86. # "PermitRootLogin without-password". If you just want the PAM account and
  87. # session checks to run without PAM authentication, then enable this but set
  88. # ChallengeResponseAuthentication=no
  89. UsePAM yes
  90.  
  91. AllowTcpForwarding no
  92. GatewayPorts no
  93. X11Forwarding no
  94. #X11DisplayOffset 10
  95. #X11UseLocalhost yes
  96. PrintMotd yes
  97. PrintLastLog yes
  98. TCPKeepAlive yes
  99. UseLogin no
  100. UsePrivilegeSeparation yes
  101. PermitUserEnvironment no
  102. Compression delayed
  103. ClientAliveInterval 0
  104. ClientAliveCountMax 3
  105. UseDNS yes
  106. PidFile /var/run/sshd.pid
  107. MaxStartups 10
  108.  
  109. # no default banner path
  110. #Banner /some/path
  111.  
  112. # override default of no subsystems
  113. Subsystem sftp /usr/lib64/ssh/sftp-server
  114.  
  115. # This enables accepting locale enviroment variables LC_* LANG, see sshd_config(
  116. 5).
  117. AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
  118. AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
  119. AcceptEnv LC_IDENTIFICATION LC_ALL
  120. sh-3.1#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement