Securing SSH - CameronProvost/Tech-Journal GitHub Wiki

Securing ssh is a very important task in order to provide secuirty within a server. In my case I disabled ssh to have a connection to a root account on my CentOS server. All it requires is the change of one argument in a configuration file.

vi /etc/ssh/sshd_config

Within this file change PermitRootLogin from yes to no

After you need to restart the service with the command systemctl restart ssh.service