{"id":28342,"date":"2018-10-04T03:33:12","date_gmt":"2018-10-04T08:33:12","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=28342"},"modified":"2022-12-08T03:38:07","modified_gmt":"2022-12-08T09:38:07","slug":"disable-or-enable-ssh-root-login-and-secure-ssh-access-in-centos-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/disable-or-enable-ssh-root-login-and-secure-ssh-access-in-centos-7\/","title":{"rendered":"Disable or Enable SSH Root Login and Secure SSH Access in CentOS 7"},"content":{"rendered":"
<\/div>\r\n
\"Disable<\/figure>\r\n\r\n\r\n\r\n
\r\n
\"Disable<\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n

We all know that CentOS comes with root access disabled for the outside world by default. This means that you can not directly log in as a root user via SSH, but you can still go ahead and utilize root privileges by using the ‘sudo’ command instead.<\/p>\r\n\r\n\r\n\r\n

However, sometimes it is more convenient to log in directly as the root user. That’s why in this article, we will talk about how to enable, disable and secure the SSH login<\/a> to your server when attempting to log in as root.<\/p>\r\n\r\n\r\n\r\n

<\/p>\r\n\r\n\r\n\r\n

Before we start, we will need several requirements to be fulfilled before continuing this tutorial.<\/p>\r\n\r\n\r\n\r\n

\n

Table of Contents<\/p>\n