1 # $OpenBSD: sshd_config,v 1.105 2024/12/03 14:12:47 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 yes
58 #PermitEmptyPasswords no
60 # Change to "no" to disable keyboard-interactive authentication. Depending on
61 # the system's configuration, this may involve passwords, challenge-response,
62 # one-time passwords or some combination of these and other methods.
63 #KbdInteractiveAuthentication yes
66 #KerberosAuthentication no
67 #KerberosOrLocalPasswd yes
68 #KerberosTicketCleanup yes
69 #KerberosGetAFSToken no
72 #GSSAPIAuthentication no
73 #GSSAPICleanupCredentials yes
75 # Set this to 'yes' to enable PAM authentication, account processing,
76 # and session processing. If this is enabled, PAM authentication will
77 # be allowed through the KbdInteractiveAuthentication and
78 # PasswordAuthentication. Depending on your PAM configuration,
79 # PAM authentication via KbdInteractiveAuthentication may bypass
80 # the setting of "PermitRootLogin prohibit-password".
81 # If you just want the PAM account and session checks to run without
82 # PAM authentication, then enable this but set PasswordAuthentication
83 # and KbdInteractiveAuthentication to 'no'.
86 #AllowAgentForwarding yes
87 #AllowTcpForwarding yes
96 #PermitUserEnvironment no
98 #ClientAliveInterval 0
99 #ClientAliveCountMax 3
101 #PidFile /var/run/sshd.pid
102 #MaxStartups 10:30:100
104 #ChrootDirectory none
105 #VersionAddendum none
107 # no default banner path
110 # override default of no subsystems
111 Subsystem sftp /usr/libexec/sftp-server
113 # Example of overriding settings on a per-user basis
116 # AllowTcpForwarding no
118 # ForceCommand cvs server