How to disable SSH login for the root user?

Jack J
Jun 29, 2021

--

The root user is enabled by default on most Linux servers, and hackers frequently attempt to get access to it by guessing its password. As a result, it’s a good idea to turn off the root account.

$ vi /etc/ssh/sshd_config

PermitRootLogin no

Also, instead of using a password, you can use a safe mechanism like SSH public-private key authentication.

SSH using the public key command line — check here

Read More: Velan Tech Tips

--

--

Jack J
Jack J

Written by Jack J

Velan Info Services (India) Pvt Ltd (Velan) is a successful IT & ITES offshore business process management. Velan Resources: https://velaninfo.com/rs/blogs/

No responses yet