It is best not to allow root to login directly to the server. Disable Root Login (PermitRootLogin)īy default you can ssh to the server as root. You don’t need to modify any of the default values in the sshd_config file except the 7 options mentioned in this article. You don’t need to change the default value of PubkeyAuthentication option, as allowing public key authentication is good. If you like to change this, you should remove the comment and change the value (from yes to no) as shown below. This indicates that the PubkeyAuthentication option contains “yes” as the 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.įor example, sshd_config file contains the following commented line. For those options that uses the default values, the sshd_config file contains a commented line with the option and its default value. In sshd_config, the lines that start with # are comments. This article explains the 7 default options in sshd_config file that you should change. OpenSSH options are controlled through the /etc/ssh/sshd_config file.
0 Comments
Leave a Reply. |