1 # $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy 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 no # plomlompom's security rule
37 #PubkeyAuthentication yes
39 # Expect .ssh/authorized_keys2 to be disregarded by default in future.
40 #AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
42 #AuthorizedPrincipalsFile none
44 #AuthorizedKeysCommand none
45 #AuthorizedKeysCommandUser nobody
47 # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
48 #HostbasedAuthentication no
49 # Change to yes if you don't trust ~/.ssh/known_hosts for
50 # HostbasedAuthentication
51 #IgnoreUserKnownHosts no
52 # Don't read the user's ~/.rhosts and ~/.shosts files
55 # To disable tunneled clear text passwords, change to no here!
56 #PasswordAuthentication yes
57 #PermitEmptyPasswords no
59 # Change to yes to enable challenge-response passwords (beware issues with
60 # some PAM modules and threads)
61 ChallengeResponseAuthentication no
64 #KerberosAuthentication no
65 #KerberosOrLocalPasswd yes
66 #KerberosTicketCleanup yes
67 #KerberosGetAFSToken no
70 #GSSAPIAuthentication no
71 #GSSAPICleanupCredentials yes
72 #GSSAPIStrictAcceptorCheck 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 ChallengeResponseAuthentication and
78 # PasswordAuthentication. Depending on your PAM configuration,
79 # PAM authentication via ChallengeResponseAuthentication may bypass
80 # the setting of "PermitRootLogin yes
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 ChallengeResponseAuthentication to 'no'.
86 #AllowAgentForwarding yes
87 #AllowTcpForwarding yes
97 #UsePrivilegeSeparation sandbox
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
125 ClientAliveInterval 120
126 PasswordAuthentication no # plomlompom's security rule