{"id":338,"date":"2018-06-05T15:32:47","date_gmt":"2018-06-05T15:32:47","guid":{"rendered":"https:\/\/fortunehost.com\/knowledgebase\/?post_type=kbe_knowledgebase&#038;p=338"},"modified":"2018-07-23T13:36:17","modified_gmt":"2018-07-23T13:36:17","slug":"how-to-enable-root-access-on-linux-server","status":"publish","type":"kbe_knowledgebase","link":"https:\/\/fortunehost.com\/knowledgebase\/kbe_knowledgebase\/how-to-enable-root-access-on-linux-server\/","title":{"rendered":"How to enable root access on Linux server"},"content":{"rendered":"<p>Root login over SSH can be required to carry out several operations and allow connection from other servers.<\/p>\n<p>Enable root login over SSH:<\/p>\n<p>1. With root login, edit the file sshd_config file located under \/etc\/ssh\/sshd_config directory with your favorite file editor; vi or nano.<\/p>\n<p style=\"padding: 2px 6px 4px 6px; color: #fbfbfb; background-color: #545456; border-radius: 5px; font-family:consolas; overflow:scroll\" >vi \/etc\/ssh\/sshd_config <\/p>\n<p>2. Go to the line that says <em>PermitRootLogin yes,\u00a0<\/em>and remove the\u00a0&#8220;#&#8221; sign in order to comment it out.<\/p>\n<p style=\"padding: 2px 6px 4px 6px; color: #fbfbfb; background-color: #545456; border-radius: 5px; font-family:consolas\"># Authentication:<br \/>\n#LoginGraceTime 2m<br \/>\nPermitRootLogin yes<br \/>\n#StrictModes yes<br \/>\n#MaxAuthTries 6<br \/>\n#MaxSessions 10<\/p>\n<p>3. Now save the file with &#8216;wq&#8217; if using vi editor or &#8216;Ctrl + O&#8217; &amp; type &#8216;Ctrl + X&#8217; to save &amp; exit in nano editor.<\/p>\n<p>4. Finally, restart the SSH server to amend the changes.<\/p>\n<p style=\"padding: 2px 6px 4px 6px; color: #fbfbfb; background-color: #545456; border-radius: 5px; font-family:consolas\">service sshd restart<\/p>\n<p>You are now ready to connect to the server as root over SSH.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Root login over SSH can be required to carry out several operations and allow connection from other servers. Enable root[&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","kbe_taxonomy":[10],"kbe_tags":[],"class_list":["post-338","kbe_knowledgebase","type-kbe_knowledgebase","status-publish","hentry","kbe_taxonomy-general-and-support"],"_links":{"self":[{"href":"https:\/\/fortunehost.com\/knowledgebase\/wp-json\/wp\/v2\/kbe_knowledgebase\/338"}],"collection":[{"href":"https:\/\/fortunehost.com\/knowledgebase\/wp-json\/wp\/v2\/kbe_knowledgebase"}],"about":[{"href":"https:\/\/fortunehost.com\/knowledgebase\/wp-json\/wp\/v2\/types\/kbe_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/fortunehost.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fortunehost.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=338"}],"version-history":[{"count":23,"href":"https:\/\/fortunehost.com\/knowledgebase\/wp-json\/wp\/v2\/kbe_knowledgebase\/338\/revisions"}],"predecessor-version":[{"id":352,"href":"https:\/\/fortunehost.com\/knowledgebase\/wp-json\/wp\/v2\/kbe_knowledgebase\/338\/revisions\/352"}],"wp:attachment":[{"href":"https:\/\/fortunehost.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=338"}],"wp:term":[{"taxonomy":"kbe_taxonomy","embeddable":true,"href":"https:\/\/fortunehost.com\/knowledgebase\/wp-json\/wp\/v2\/kbe_taxonomy?post=338"},{"taxonomy":"kbe_tags","embeddable":true,"href":"https:\/\/fortunehost.com\/knowledgebase\/wp-json\/wp\/v2\/kbe_tags?post=338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}