1 # $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj 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
13 Include /etc/ssh/sshd_config.d/*.conf
17 #ListenAddress 0.0.0.0
20 #HostKey /etc/ssh/ssh_host_rsa_key
21 #HostKey /etc/ssh/ssh_host_ecdsa_key
22 #HostKey /etc/ssh/ssh_host_ed25519_key
25 #RekeyLimit default none
34 PermitRootLogin no # plomlompom's security rule
39 #PubkeyAuthentication yes
41 # Expect .ssh/authorized_keys2 to be disregarded by default in future.
42 #AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
44 #AuthorizedPrincipalsFile none
46 #AuthorizedKeysCommand none
47 #AuthorizedKeysCommandUser nobody
49 # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
50 #HostbasedAuthentication no
51 # Change to yes if you don't trust ~/.ssh/known_hosts for
52 # HostbasedAuthentication
53 #IgnoreUserKnownHosts no
54 # Don't read the user's ~/.rhosts and ~/.shosts files
57 # To disable tunneled clear text passwords, change to no here!
58 PasswordAuthentication no
59 #PermitEmptyPasswords no
61 # Change to yes to enable challenge-response passwords (beware issues with
62 # some PAM modules and threads)
63 ChallengeResponseAuthentication no
66 #KerberosAuthentication no
67 #KerberosOrLocalPasswd yes
68 #KerberosTicketCleanup yes
69 #KerberosGetAFSToken no
72 #GSSAPIAuthentication no
73 #GSSAPICleanupCredentials yes
74 #GSSAPIStrictAcceptorCheck yes
77 # Set this to 'yes' to enable PAM authentication, account processing,
78 # and session processing. If this is enabled, PAM authentication will
79 # be allowed through the ChallengeResponseAuthentication and
80 # PasswordAuthentication. Depending on your PAM configuration,
81 # PAM authentication via ChallengeResponseAuthentication may bypass
82 # the setting of "PermitRootLogin yes
83 # If you just want the PAM account and session checks to run without
84 # PAM authentication, then enable this but set PasswordAuthentication
85 # and ChallengeResponseAuthentication to 'no'.
88 #AllowAgentForwarding yes
89 #AllowTcpForwarding yes
98 #PermitUserEnvironment no
100 #ClientAliveInterval 0
101 #ClientAliveCountMax 3
103 #PidFile /var/run/sshd.pid
104 #MaxStartups 10:30:100
106 #ChrootDirectory none
107 #VersionAddendum none
109 # no default banner path
112 # Allow client to pass locale environment variables
115 # override default of no subsystems
116 Subsystem sftp /usr/lib/openssh/sftp-server
118 # Example of overriding settings on a per-user basis
121 # AllowTcpForwarding no
123 # ForceCommand cvs server
124 ClientAliveInterval 120