{"id":267,"date":"2015-10-30T06:11:22","date_gmt":"2015-10-30T06:11:22","guid":{"rendered":"http:\/\/muse.oneshot.in\/?p=267"},"modified":"2022-02-17T18:51:41","modified_gmt":"2022-02-17T18:51:41","slug":"deny-remote-root-access-in-linux-through-ssh","status":"publish","type":"post","link":"https:\/\/muse.oneshot.in\/?p=267","title":{"rendered":"Deny remote Root access in Linux through SSH"},"content":{"rendered":"<p>Three areas in SSH will help in deny or allow remote root access<\/p>\n<p>Go to \/etc\/ssh\/sshd_config<\/p>\n<p>1) PermitRootLogin no<\/p>\n<p>If you want to deny certain users from logging in, put this in the configuration file:<\/p>\n<p>2) DenyUsers root<\/p>\n<p>This takes the blacklisting approach. Whitelisting is generally preferable. If your company needs to allow the rob and admin users log in on the server, use the following configuration directive:<\/p>\n<p>3) AllowUsers rob admin<\/p>\n<p>This will allow specific groups have access remotely<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Three areas in SSH will help in deny or allow remote root access Go to \/etc\/ssh\/sshd_config 1) PermitRootLogin no If you want to deny certain users from logging in, put this in the configuration file: 2) DenyUsers root This takes the blacklisting approach. Whitelisting is generally preferable. If your company needs to allow the rob [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-267","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/posts\/267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=267"}],"version-history":[{"count":1,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/posts\/267\/revisions"}],"predecessor-version":[{"id":268,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/posts\/267\/revisions\/268"}],"wp:attachment":[{"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}