{"id":4952,"date":"2014-05-08T00:05:21","date_gmt":"2014-05-07T16:05:21","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=4952"},"modified":"2023-09-18T15:43:44","modified_gmt":"2023-09-18T15:43:44","slug":"how-to-allow-root-to-use-ssh-on-ubuntu-14-04","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-allow-root-to-use-ssh-on-ubuntu-14-04\/","title":{"rendered":"How to Allow root to use SSH on Ubuntu 14.04"},"content":{"rendered":"<p>By default, <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-ubuntu-beginners-guide-ubuntu-linux-distro\/\">Ubuntu<\/a> 14.04 does not permit the root user to log in through SSH for security reasons. However, there might be situations where you need to enable SSH access for the root user. In this guide, we will show you how to allow the root user to use SSH on Ubuntu 14.04. Please note that this action may expose your system to potential security risks, and it is recommended to use a non-root user with sudo privileges for most administrative tasks.<\/p>\n<h2>Step 1: Backup the SSH configuration file<\/h2>\n<p>Before making any changes to the SSH configuration, create a backup of the current configuration file:<\/p>\n<pre>\r\nsudo cp \/etc\/ssh\/sshd_config \/etc\/ssh\/sshd_config.backup\r\n<\/pre>\n<h2>Step 2: Edit the SSH configuration file<\/h2>\n<p>Open the SSH configuration file with a text editor, such as nano:<\/p>\n<pre>\r\nsudo nano \/etc\/ssh\/sshd_config\r\n<\/pre>\n<p>Find the following line:<\/p>\n<pre>\r\n#PermitRootLogin without-password\r\n<\/pre>\n<p>Uncomment this line by removing the &#8220;#&#8221; at the beginning, and change &#8220;without-password&#8221; to &#8220;yes&#8221;:<\/p>\n<pre>\r\nPermitRootLogin yes\r\n<\/pre>\n<p>Save and close the file.<\/p>\n<h2>Step 3: Restart the SSH service<\/h2>\n<p>Apply the changes by restarting the SSH service:<\/p>\n<pre>\r\nsudo service ssh restart\r\n<\/pre>\n<p>The root user should now be able to log in via SSH using the root password.<\/p>\n<pre>root@ubuntu14:~# service sshd restart\r\nssh stop\/waiting\r\nssh start\/running, process 1499\r\nroot@ubuntu14:~#\r\n<\/pre>\n<h2>Programs Mentioned:<\/h2>\n<ul>\n<li><span class=\"fw-bold\">SSH (Secure Shell)<\/span> &#8211; A cryptographic network protocol for operating network services securely over an unsecured network, commonly used for remote command-line login and remote command execution.<\/li>\n<li><span class=\"fw-bold\">sshd_config<\/span> &#8211; The main configuration file for the OpenSSH server, which contains various settings that control the server&#8217;s behavior and security features.<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>By following this guide, you have successfully enabled SSH access for the root user on Ubuntu 14.04. Please be aware that allowing root access via SSH can be a security risk, and it is generally recommended to use a non-root user with sudo privileges instead. Always ensure that you use strong, unique passwords for all user accounts and keep your system up-to-date with security patches.<\/p>\n<p>If you have any questions, comments, or suggestions for improvements, please feel free to share your thoughts. Your feedback helps us provide the most accurate and useful information possible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, Ubuntu 14.04 does not permit the root user to log in through SSH for security reasons. However, there might be situations where you need to enable SSH access&#8230;<\/p>\n","protected":false},"author":6,"featured_media":5050,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1073],"tags":[1856,1859],"class_list":["post-4952","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-ubuntu","tag-ubuntu-14-04-lts"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=4952"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4952\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/5050"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=4952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=4952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=4952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}