Disable root SSH login on Linux

Disable Root SSH Login on Linux, Disabling Root Logins, How do I disable remote SSH login as root from a server, Disable or Enable SSH Root Login and Limit SSH Access, Disabling Root User Login, How can I disable SSH login for a root user, disable remote root login, permitrootlogin, ssh deny root login, How do I disable SSH login for the root user

Disable root SSH login on Linux

Providing direct login access to root via SSH is not a good practice. Administrators should use sudo to switch to root after logged in as themselves. this will helpful in auditing in terms of security.

Here is the step by step procedure to disable/deny direct root login via SSH

Login to the server as Root, Edit the file /etc/ssh/sshd_config and search for the line,
PermitRootLogin=Yes
and then change the value of it to,
PermitRootLogin=No
Restart the sshd service
service sshd restart
or
systemctl reload sshd

Leave your comments if any, we appreciate your feedback.
Subscribe us on youtube channel for practical video tutorials and follow us on social networking sites to not miss any updates.
November 06, 2015

Post a Comment

[disqus][facebook][blogger]

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget