Remote Administration Via SSH Set SSH Protocol To 2 Set SSH protocol to 2 SSH has two protocols it may use, protocol 1 and protocol 2. The older protocol 1 is less secure and should be disabled unless you know that you specifically require it. Open the sshd configvi /etc/ssh/sshd_config Add or amend as shown below# Protocol 2,1Protocol 2 Restart the sshd servicesystemctl restart sshd.service Disable SSH Root Login Disabling root login via SSH Disabling SSH root login will add an extra layer of security. It would be more secure to brute forceattacks or in case your password is stolen. Create a non-root useradduser usernamepasswd username Open the ssh configuration file with your editor.vi /etc/ssh/sshd_config Add the line “PermitRootLogin no.” Or uncomment the line "#PermitRootLogin yes" andchange yes to no.#LoginGraceTime 2m#PermitRootLogin yes#StrictModes yes#MaxAuthTries 6#MaxSessions 10PermitRootLogin no Save and exit the file. Restart the ssh servicesystemctl restart sshd.service Set SSH permitemptypasswords to no Set SSH permitemptypasswords to no Open the ssh configuration file with your editor.vi /etc/ssh/sshd_config Add or amend as shown belowPermitEmptyPasswords no Restart the sshd servicesystemctl restart sshd.service