2 # This is the sshd server system-wide configuration file. See
3 # sshd_config(5) for more information.
5 # This sshd was compiled with PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
7 # The strategy used for options in the default sshd_config shipped with
8 # OpenSSH is to specify options with their default value where
9 # possible, but leave them commented. Uncommented options override the
12 Include /etc/ssh/sshd_config.d/*.conf
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
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 no
58 #PermitEmptyPasswords no
60 # Change to yes to enable challenge-response passwords (beware issues with
61 # some PAM modules and threads)
62 KbdInteractiveAuthentication 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 KbdInteractiveAuthentication and
79 # PasswordAuthentication. Depending on your PAM configuration,
80 # PAM authentication via KbdInteractiveAuthentication may bypass
81 # the setting of "PermitRootLogin prohibit-password".
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 KbdInteractiveAuthentication to 'no'.
87 #AllowAgentForwarding yes
88 #AllowTcpForwarding yes
97 #PermitUserEnvironment no
99 ClientAliveInterval 15
100 #ClientAliveCountMax 3
102 #PidFile /run/sshd.pid
103 #MaxStartups 10:30:100
105 #ChrootDirectory none
106 #VersionAddendum none
108 # no default banner path
111 # Allow client to pass locale environment variables
114 # override default of no subsystems
115 Subsystem sftp /usr/lib/openssh/sftp-server
117 # Example of overriding settings on a per-user basis
120 # AllowTcpForwarding no
122 # ForceCommand cvs server