Saltstack Official OpenSSH Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
3.7KB

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