1 # $OpenBSD: sshd_config,v 1.99 2016/07/11 03:19:44 tedu 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
15 #ListenAddress 0.0.0.0
18 # The default requires explicit activation of protocol 1
21 # HostKey for protocol version 1
22 #HostKey /etc/ssh/ssh_host_key
23 # HostKeys for protocol version 2
24 #HostKey /etc/ssh/ssh_host_rsa_key
25 #HostKey /etc/ssh/ssh_host_dsa_key
26 #HostKey /etc/ssh/ssh_host_ecdsa_key
27 #HostKey /etc/ssh/ssh_host_ed25519_key
29 # Lifetime and size of ephemeral version 1 server key
30 #KeyRegenerationInterval 1h
34 #RekeyLimit default none
43 #PermitRootLogin prohibit-password
48 #RSAAuthentication yes
49 #PubkeyAuthentication yes
51 # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
52 # but this is overridden so installations will only check .ssh/authorized_keys
53 AuthorizedKeysFile .ssh/authorized_keys
55 #AuthorizedPrincipalsFile none
57 #AuthorizedKeysCommand none
58 #AuthorizedKeysCommandUser nobody
60 # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
61 #RhostsRSAAuthentication no
62 # similar for protocol version 2
63 #HostbasedAuthentication no
64 # Change to yes if you don't trust ~/.ssh/known_hosts for
65 # RhostsRSAAuthentication and HostbasedAuthentication
66 #IgnoreUserKnownHosts no
67 # Don't read the user's ~/.rhosts and ~/.shosts files
70 # Tunneled clear text passwords are disabled by default in DragonFly.
71 # Change to yes to get OpenSSH's default.
72 #PasswordAuthentication no
74 #PermitEmptyPasswords no
76 # Change to no to disable s/key passwords
77 #ChallengeResponseAuthentication yes
80 #KerberosAuthentication no
81 #KerberosOrLocalPasswd yes
82 #KerberosTicketCleanup yes
83 #KerberosGetAFSToken no
86 #GSSAPIAuthentication no
87 #GSSAPICleanupCredentials yes
89 # Set this to 'yes' to enable PAM authentication, account processing,
90 # and session processing. If this is enabled, PAM authentication will
91 # be allowed through the ChallengeResponseAuthentication and
92 # PasswordAuthentication. Depending on your PAM configuration,
93 # PAM authentication via ChallengeResponseAuthentication may bypass
94 # the setting of "PermitRootLogin without-password".
95 # If you just want the PAM account and session checks to run without
96 # PAM authentication, then enable this but set PasswordAuthentication
97 # and ChallengeResponseAuthentication to 'no'.
100 #AllowAgentForwarding yes
101 #AllowTcpForwarding yes
111 #UsePrivilegeSeparation sandbox
112 #PermitUserEnvironment no
114 #ClientAliveInterval 0
115 #ClientAliveCountMax 3
117 #PidFile /var/run/sshd.pid
118 #MaxStartups 10:30:100
120 #ChrootDirectory none
122 # DragonFly has different defaults than OpenSSH.
123 #VersionAddendum DragonFly-20160813
125 # no default banner path
128 # override default of no subsystems
129 Subsystem sftp /usr/libexec/sftp-server
131 # Example of overriding settings on a per-user basis
134 # AllowTcpForwarding no
136 # ForceCommand cvs server