1 # $OpenBSD: sshd_config,v 1.93 2014/01/10 05:59:19 djm Exp $
3 # This is the sshd server system-wide configuration file. See
4 # sshd_config(5) for more information.
6 # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
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 override the
13 # Note that some of DragonFly's defaults differ from OpenBSD's, and
14 # DragonFly has a few additional options.
16 #VersionAddendum DragonFly-20150122
20 #ListenAddress 0.0.0.0
23 # The default requires explicit activation of protocol 1
26 # HostKey for protocol version 1
27 #HostKey /etc/ssh/ssh_host_key
28 # HostKeys for protocol version 2
29 #HostKey /etc/ssh/ssh_host_rsa_key
30 #HostKey /etc/ssh/ssh_host_dsa_key
31 #HostKey /etc/ssh/ssh_host_ecdsa_key
32 #HostKey /etc/ssh/ssh_host_ed25519_key
34 # Lifetime and size of ephemeral version 1 server key
35 #KeyRegenerationInterval 1h
39 #RekeyLimit default none
42 # obsoletes QuietMode and FascistLogging
49 # only allow root logins via public key pair
50 PermitRootLogin without-password
55 #RSAAuthentication yes
56 #PubkeyAuthentication yes
57 #PermitBlacklistedKeys no
59 # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
60 # but this is overridden so installations will only check .ssh/authorized_keys
61 AuthorizedKeysFile .ssh/authorized_keys
63 #AuthorizedPrincipalsFile none
65 #AuthorizedKeysCommand none
66 #AuthorizedKeysCommandUser nobody
68 # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
69 RhostsRSAAuthentication no
70 # similar for protocol version 2
71 HostbasedAuthentication no
72 # Change to yes if you don't trust ~/.ssh/known_hosts for
73 # RhostsRSAAuthentication and HostbasedAuthentication
74 #IgnoreUserKnownHosts no
75 # Don't read the user's ~/.rhosts and ~/.shosts files
78 # To disable tunneled clear text passwords, change to no here!
79 # We disable cleartext passwords by default
80 PasswordAuthentication no
81 #PermitEmptyPasswords no
83 # Change to no to disable s/key and tunneled clear-text passwords
84 # when PAM is enabled. We disable this by default. Note that
85 # PAM is also disabled by default.
86 ChallengeResponseAuthentication no
89 #KerberosAuthentication no
90 #KerberosOrLocalPasswd yes
91 #KerberosTicketCleanup yes
92 #KerberosGetAFSToken no
95 #GSSAPIAuthentication no
96 #GSSAPICleanupCredentials yes
98 # Set this to 'yes' to enable PAM authentication, account processing,
99 # and session processing. If this is enabled, PAM authentication will
100 # be allowed through the ChallengeResponseAuthentication and
101 # PasswordAuthentication. Depending on your PAM configuration,
102 # PAM authentication via ChallengeResponseAuthentication may bypass
103 # the setting of "PermitRootLogin without-password".
104 # If you just want the PAM account and session checks to run without
105 # PAM authentication, then enable this but set PasswordAuthentication
106 # and ChallengeResponseAuthentication to 'no'.
109 #AllowAgentForwarding yes
110 #AllowTcpForwarding yes
120 UsePrivilegeSeparation sandbox # Default for new installations.
121 #PermitUserEnvironment no
123 #ClientAliveInterval 0
124 #ClientAliveCountMax 3
126 #PidFile /var/run/sshd.pid
127 #MaxStartups 10:30:100
129 #ChrootDirectory none
131 #XAuthLocation /usr/local/bin/xauth
133 # no default banner path
136 # override default of no subsystems
137 Subsystem sftp /usr/libexec/sftp-server
139 # the following are HPN related configuration options
140 # tcp receive buffer polling. disable in non autotuning kernels
143 # allow the use of the none cipher
146 # disable hpn performance boosts.
149 # buffer size for hpn to non-hpn connections
153 # Example of overriding settings on a per-user basis
156 # AllowTcpForwarding no
158 # ForceCommand cvs server