Saltstack Official OpenSSH Formula
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

128 linhas
3.5KB

  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. UsePrivilegeSeparation sandbox # Default for new installations.
  85. #PermitUserEnvironment no
  86. #Compression delayed
  87. #ClientAliveInterval 0
  88. #ClientAliveCountMax 3
  89. #UseDNS yes
  90. #PidFile /run/sshd.pid
  91. #MaxStartups 10:30:100
  92. #PermitTunnel no
  93. #ChrootDirectory none
  94. #VersionAddendum none
  95. # no default banner path
  96. Banner /etc/ssh/banner
  97. # override default of no subsystems
  98. Subsystem sftp /usr/lib/ssh/sftp-server
  99. # Example of overriding settings on a per-user basis
  100. #Match User anoncvs
  101. # X11Forwarding no
  102. # AllowTcpForwarding no
  103. # ForceCommand cvs server