1 # $OpenBSD: sshd_config,v 1.97 2015/08/06 14:53:21 deraadt 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
37 # obsoletes QuietMode and FascistLogging
44 #PermitRootLogin prohibit-password
49 #RSAAuthentication yes
50 #PubkeyAuthentication yes
52 # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
53 # but this is overridden so installations will only check .ssh/authorized_keys
54 AuthorizedKeysFile .ssh/authorized_keys
56 #AuthorizedPrincipalsFile none
58 #AuthorizedKeysCommand none
59 #AuthorizedKeysCommandUser nobody
61 # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
62 #RhostsRSAAuthentication no
63 # similar for protocol version 2
64 #HostbasedAuthentication no
65 # Change to yes if you don't trust ~/.ssh/known_hosts for
66 # RhostsRSAAuthentication and HostbasedAuthentication
67 #IgnoreUserKnownHosts no
68 # Don't read the user's ~/.rhosts and ~/.shosts files
71 # To disable tunneled clear text passwords, change to no here!
72 #PasswordAuthentication yes
73 #PermitEmptyPasswords no
75 # Change to no to disable s/key passwords
76 #ChallengeResponseAuthentication yes
79 #KerberosAuthentication no
80 #KerberosOrLocalPasswd yes
81 #KerberosTicketCleanup yes
82 #KerberosGetAFSToken no
85 #GSSAPIAuthentication no
86 #GSSAPICleanupCredentials yes
88 # Set this to 'yes' to enable PAM authentication, account processing,
89 # and session processing. If this is enabled, PAM authentication will
90 # be allowed through the ChallengeResponseAuthentication and
91 # PasswordAuthentication. Depending on your PAM configuration,
92 # PAM authentication via ChallengeResponseAuthentication may bypass
93 # the setting of "PermitRootLogin without-password".
94 # If you just want the PAM account and session checks to run without
95 # PAM authentication, then enable this but set PasswordAuthentication
96 # and ChallengeResponseAuthentication to 'no'.
99 #AllowAgentForwarding yes
100 #AllowTcpForwarding yes
110 UsePrivilegeSeparation sandbox # Default for new installations.
111 #PermitUserEnvironment no
113 #ClientAliveInterval 0
114 #ClientAliveCountMax 3
116 #PidFile /var/run/sshd.pid
117 #MaxStartups 10:30:100
119 #ChrootDirectory none
120 #VersionAddendum none
122 # no default banner path
125 # override default of no subsystems
126 Subsystem sftp /usr/libexec/sftp-server
128 # Example of overriding settings on a per-user basis
131 # AllowTcpForwarding no
133 # ForceCommand cvs server