1 # $OpenBSD: sshd_config,v 1.84 2011/05/23 03:30:07 djm Exp $
4 # This is the sshd server system-wide configuration file. See
5 # sshd_config(5) for more information.
7 # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
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
14 # Note that some of FreeBSD's defaults differ from OpenBSD's, and
15 # FreeBSD has a few additional options.
17 #VersionAddendum FreeBSD-20111001
21 #ListenAddress 0.0.0.0
24 # The default requires explicit activation of protocol 1
27 # HostKey for protocol version 1
28 #HostKey /etc/ssh/ssh_host_key
29 # HostKeys for protocol version 2
30 #HostKey /etc/ssh/ssh_host_rsa_key
31 #HostKey /etc/ssh/ssh_host_dsa_key
32 #HostKey /etc/ssh/ssh_host_ecdsa_key
34 # Lifetime and size of ephemeral version 1 server key
35 #KeyRegenerationInterval 1h
39 # obsoletes QuietMode and FascistLogging
51 #RSAAuthentication yes
52 #PubkeyAuthentication yes
54 # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
55 # but this is overridden so installations will only check .ssh/authorized_keys
56 AuthorizedKeysFile .ssh/authorized_keys
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
68 # Change to yes to enable built-in password authentication.
69 #PasswordAuthentication no
70 #PermitEmptyPasswords no
72 # Change to no to disable PAM authentication
73 #ChallengeResponseAuthentication yes
76 #KerberosAuthentication no
77 #KerberosOrLocalPasswd yes
78 #KerberosTicketCleanup yes
79 #KerberosGetAFSToken no
82 #GSSAPIAuthentication no
83 #GSSAPICleanupCredentials yes
85 # Set this to 'no' to disable 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'.
96 #AllowAgentForwarding yes
97 #AllowTcpForwarding yes
106 #UsePrivilegeSeparation yes
107 #PermitUserEnvironment no
109 #ClientAliveInterval 0
110 #ClientAliveCountMax 3
112 #PidFile /var/run/sshd.pid
115 #ChrootDirectory none
117 # no default banner path
120 # override default of no subsystems
121 Subsystem sftp /usr/libexec/sftp-server
123 # Disable HPN tuning improvements.
126 # Buffer size for HPN to non-HPN connections.
129 # TCP receive socket buffer polling for HPN. Disable on non autotuning kernels.
132 # Allow the use of the NONE cipher.
135 # Example of overriding settings on a per-user basis
138 # AllowTcpForwarding no
139 # ForceCommand cvs server