{"id":147,"date":"2023-04-05T17:13:45","date_gmt":"2023-04-05T15:13:45","guid":{"rendered":"https:\/\/gilbert.busana.lu\/?p=147"},"modified":"2023-04-05T17:17:10","modified_gmt":"2023-04-05T15:17:10","slug":"ubuntu-enable-root-access-from-ssh","status":"publish","type":"post","link":"https:\/\/www.homeserver.lu\/?p=147","title":{"rendered":"Ubuntu: enable root access from SSH"},"content":{"rendered":"\n<p>Connecting to a server via SSH as root user is disabled by default. To enable this, edit the sshd configuration file: <\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>nano \/etc\/ssh\/sshd_config<\/code><\/pre><\/div>\n\n\n\n<p>Find the following line:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>#PermitRootLogin prohibit-password<\/code><\/pre><\/div>\n\n\n\n<p>Change it to this.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>PermitRootLogin yes<\/code><\/pre><\/div>\n\n\n\n<p>Now restart the ssh service:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>systemctl restart sshd<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Connecting to a server via SSH as root user is disabled by default. To enable this, edit the sshd configuration file: Find the following line: Change it to this. Now restart the ssh service:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-147","post","type-post","status-publish","format-standard","hentry","category-cli"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=147"}],"version-history":[{"count":4,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":155,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts\/147\/revisions\/155"}],"wp:attachment":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}