Guides 11791 Published by

The Geek Stuff explains the 7 default options in sshd_config file that you should change.



In sshd_config, the lines that start with # are comments. For those options that uses the default values, the sshd_config file contains a commented line with the option and its default value.

This makes it easier for us, as we can see the OpenSSH option name and the default value without having to lookup somewhere else.

For example, sshd_config file contains the following commented line. This indicates that the PubkeyAuthentication option contains “yes” as the default value.
  7 Default OpenSSH Security Options You Should Change in /etc/ssh/sshd_config