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
14 Port 443 # plomlompom: used for networks where 22 is banned
16 #ListenAddress 0.0.0.0
19 #HostKey /etc/ssh/ssh_host_rsa_key
20 #HostKey /etc/ssh/ssh_host_ecdsa_key
21 #HostKey /etc/ssh/ssh_host_ed25519_key
24 #RekeyLimit default none
33 PermitRootLogin no # plomlompom's security rule
38 #PubkeyAuthentication yes
40 # Expect .ssh/authorized_keys2 to be disregarded by default in future.
41 #AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
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 yes to enable challenge-response passwords (beware issues with
61 # some PAM modules and threads)
62 ChallengeResponseAuthentication no
65 #KerberosAuthentication no
66 #KerberosOrLocalPasswd yes
67 #KerberosTicketCleanup yes
68 #KerberosGetAFSToken no
71 #GSSAPIAuthentication no
72 #GSSAPICleanupCredentials yes
73 #GSSAPIStrictAcceptorCheck yes
76 # Set this to 'yes' to enable PAM authentication, account processing,
77 # and session processing. If this is enabled, PAM authentication will
78 # be allowed through the ChallengeResponseAuthentication and
79 # PasswordAuthentication. Depending on your PAM configuration,
80 # PAM authentication via ChallengeResponseAuthentication may bypass
81 # the setting of "PermitRootLogin yes
82 # If you just want the PAM account and session checks to run without
83 # PAM authentication, then enable this but set PasswordAuthentication
84 # and ChallengeResponseAuthentication to 'no'.
87 #AllowAgentForwarding yes
88 #AllowTcpForwarding yes
98 #UsePrivilegeSeparation sandbox
99 #PermitUserEnvironment no
101 #ClientAliveInterval 0
102 #ClientAliveCountMax 3
104 #PidFile /var/run/sshd.pid
105 #MaxStartups 10:30:100
107 #ChrootDirectory none
108 #VersionAddendum none
110 # no default banner path
113 # Allow client to pass locale environment variables
116 # override default of no subsystems
117 Subsystem sftp /usr/lib/openssh/sftp-server
119 # Example of overriding settings on a per-user basis
122 # AllowTcpForwarding no
124 # ForceCommand cvs server
126 ClientAliveInterval 120
127 PasswordAuthentication no # plomlompom's security rule