1 # $OpenBSD: sshd_config,v 1.104 2021/07/02 05:11:21 dtucker 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 #HostKey /etc/ssh/ssh_host_rsa_key
19 #HostKey /etc/ssh/ssh_host_ecdsa_key
20 #HostKey /etc/ssh/ssh_host_ed25519_key
23 #RekeyLimit default none
32 #PermitRootLogin prohibit-password
37 #PubkeyAuthentication yes
39 # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
40 # but this is overridden so installations will only check .ssh/authorized_keys
41 AuthorizedKeysFile .ssh/authorized_keys
43 #AuthorizedPrincipalsFile none
45 #AuthorizedKeysCommand none
46 #AuthorizedKeysCommandUser nobody
48 # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
49 #HostbasedAuthentication no
50 # Change to yes if you don't trust ~/.ssh/known_hosts for
51 # HostbasedAuthentication
52 #IgnoreUserKnownHosts no
53 # Don't read the user's ~/.rhosts and ~/.shosts files
56 # To disable tunneled clear text passwords, change to no here!
57 PasswordAuthentication no
58 #PermitEmptyPasswords no
60 # Change to no to disable s/key passwords
61 #KbdInteractiveAuthentication yes
64 #KerberosAuthentication no
65 #KerberosOrLocalPasswd yes
66 #KerberosTicketCleanup yes
67 #KerberosGetAFSToken no
70 #GSSAPIAuthentication no
71 #GSSAPICleanupCredentials yes
73 # Set this to 'yes' to enable PAM authentication, account processing,
74 # and session processing. If this is enabled, PAM authentication will
75 # be allowed through the KbdInteractiveAuthentication and
76 # PasswordAuthentication. Depending on your PAM configuration,
77 # PAM authentication via KbdInteractiveAuthentication may bypass
78 # the setting of "PermitRootLogin without-password".
79 # If you just want the PAM account and session checks to run without
80 # PAM authentication, then enable this but set PasswordAuthentication
81 # and KbdInteractiveAuthentication to 'no'.
84 #AllowAgentForwarding yes
85 #AllowTcpForwarding yes
94 #PermitUserEnvironment no
96 #ClientAliveInterval 0
97 #ClientAliveCountMax 3
99 #PidFile /var/run/sshd.pid
100 #MaxStartups 10:30:100
102 #ChrootDirectory none
103 #VersionAddendum none
105 # no default banner path
108 # override default of no subsystems
109 Subsystem sftp /usr/libexec/sftp-server
111 # Example of overriding settings on a per-user basis
114 # AllowTcpForwarding no
116 # ForceCommand cvs server