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
58 # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
59 # but this is overridden so installations will only check .ssh/authorized_keys
60 AuthorizedKeysFile .ssh/authorized_keys
62 #AuthorizedPrincipalsFile none
64 #AuthorizedKeysCommand none
65 #AuthorizedKeysCommandUser nobody
67 # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
68 RhostsRSAAuthentication no
69 # similar for protocol version 2
70 HostbasedAuthentication no
71 # Change to yes if you don't trust ~/.ssh/known_hosts for
72 # RhostsRSAAuthentication and HostbasedAuthentication
73 #IgnoreUserKnownHosts no
74 # Don't read the user's ~/.rhosts and ~/.shosts files
77 # To disable tunneled clear text passwords, change to no here!
78 # We disable cleartext passwords by default
79 PasswordAuthentication no
80 #PermitEmptyPasswords no
82 # Change to no to disable s/key and tunneled clear-text passwords
83 # when PAM is enabled. We disable this by default. Note that
84 # PAM is also disabled by default.
85 ChallengeResponseAuthentication no
88 #KerberosAuthentication no
89 #KerberosOrLocalPasswd yes
90 #KerberosTicketCleanup yes
91 #KerberosGetAFSToken no
94 #GSSAPIAuthentication no
95 #GSSAPICleanupCredentials yes
97 # Set this to 'yes' to enable PAM authentication, account processing,
98 # and session processing. If this is enabled, PAM authentication will
99 # be allowed through the ChallengeResponseAuthentication and
100 # PasswordAuthentication. Depending on your PAM configuration,
101 # PAM authentication via ChallengeResponseAuthentication may bypass
102 # the setting of "PermitRootLogin without-password".
103 # If you just want the PAM account and session checks to run without
104 # PAM authentication, then enable this but set PasswordAuthentication
105 # and ChallengeResponseAuthentication to 'no'.
108 #AllowAgentForwarding yes
109 #AllowTcpForwarding yes
119 UsePrivilegeSeparation sandbox # Default for new installations.
120 #PermitUserEnvironment no
122 #ClientAliveInterval 0
123 #ClientAliveCountMax 3
125 #PidFile /var/run/sshd.pid
126 #MaxStartups 10:30:100
128 #ChrootDirectory none
130 #XAuthLocation /usr/local/bin/xauth
132 # no default banner path
135 # override default of no subsystems
136 Subsystem sftp /usr/libexec/sftp-server
138 # the following are HPN related configuration options
139 # tcp receive buffer polling. disable in non autotuning kernels
142 # allow the use of the none cipher
145 # disable hpn performance boosts.
148 # buffer size for hpn to non-hpn connections
152 # Example of overriding settings on a per-user basis
155 # AllowTcpForwarding no
157 # ForceCommand cvs server