1 # $OpenBSD: sshd_config,v 1.98 2016/02/17 05:29:04 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.
19 #ListenAddress 0.0.0.0
22 # The default requires explicit activation of protocol 1
25 # HostKey for protocol version 1
26 #HostKey /etc/ssh/ssh_host_key
27 # HostKeys for protocol version 2
28 #HostKey /etc/ssh/ssh_host_rsa_key
29 #HostKey /etc/ssh/ssh_host_dsa_key
30 #HostKey /etc/ssh/ssh_host_ecdsa_key
31 #HostKey /etc/ssh/ssh_host_ed25519_key
33 # Lifetime and size of ephemeral version 1 server key
34 #KeyRegenerationInterval 1h
38 #RekeyLimit default none
41 # obsoletes QuietMode and FascistLogging
53 #RSAAuthentication yes
54 #PubkeyAuthentication yes
56 # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
57 #AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
59 #AuthorizedPrincipalsFile none
61 #AuthorizedKeysCommand none
62 #AuthorizedKeysCommandUser nobody
64 # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
65 #RhostsRSAAuthentication no
66 # similar for protocol version 2
67 #HostbasedAuthentication no
68 # Change to yes if you don't trust ~/.ssh/known_hosts for
69 # RhostsRSAAuthentication and HostbasedAuthentication
70 #IgnoreUserKnownHosts no
71 # Don't read the user's ~/.rhosts and ~/.shosts files
74 # Change to yes to enable built-in password authentication.
75 #PasswordAuthentication no
76 #PermitEmptyPasswords no
78 # Change to no to disable PAM authentication
79 #ChallengeResponseAuthentication yes
82 #KerberosAuthentication no
83 #KerberosOrLocalPasswd yes
84 #KerberosTicketCleanup yes
85 #KerberosGetAFSToken no
88 #GSSAPIAuthentication no
89 #GSSAPICleanupCredentials yes
91 # Set this to 'no' to disable PAM authentication, account processing,
92 # and session processing. If this is enabled, PAM authentication will
93 # be allowed through the ChallengeResponseAuthentication and
94 # PasswordAuthentication. Depending on your PAM configuration,
95 # PAM authentication via ChallengeResponseAuthentication may bypass
96 # the setting of "PermitRootLogin without-password".
97 # If you just want the PAM account and session checks to run without
98 # PAM authentication, then enable this but set PasswordAuthentication
99 # and ChallengeResponseAuthentication to 'no'.
102 #AllowAgentForwarding yes
103 #AllowTcpForwarding yes
113 #UsePrivilegeSeparation sandbox
114 #PermitUserEnvironment no
116 #ClientAliveInterval 0
117 #ClientAliveCountMax 3
119 #PidFile /var/run/sshd.pid
120 #MaxStartups 10:30:100
122 #ChrootDirectory none
124 #VersionAddendum FreeBSD-20161230
126 # no default banner path
129 # override default of no subsystems
130 Subsystem sftp /usr/libexec/sftp-server
132 # Example of overriding settings on a per-user basis
135 # AllowTcpForwarding no
137 # ForceCommand cvs server