{"id":200,"date":"2012-08-30T17:35:05","date_gmt":"2012-08-30T17:35:05","guid":{"rendered":"http:\/\/vickistan.com\/?p=200"},"modified":"2012-08-30T19:33:59","modified_gmt":"2012-08-30T19:33:59","slug":"restricting-sshd-by-username","status":"publish","type":"post","link":"https:\/\/vickistan.com\/?p=200","title":{"rendered":"Restricting sshd by username"},"content":{"rendered":"<p><strong>Step # 1: Open sshd_config file<br \/>\n<\/strong><br \/>\n# vi \/etc\/ssh\/sshd_config<\/p>\n<p><strong>Step # 2: Specify a user<\/strong><\/p>\n<p>Only allow user king to login by adding following line:<br \/>\nAllowUsers king<\/p>\n<p><strong>Step # 3: Restart sshd<\/strong><\/p>\n<p>Save and close the file. In the above example, user vivek has already been created on the system. Now just restart sshd:<br \/>\n# service sshd restart<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step # 1: Open sshd_config file # vi \/etc\/ssh\/sshd_config Step # 2: Specify a user Only allow user king to login by adding following line: AllowUsers king Step # 3: Restart sshd Save and close the file. In the above &hellip; <a href=\"https:\/\/vickistan.com\/?p=200\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-200","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=200"}],"version-history":[{"count":3,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/200\/revisions"}],"predecessor-version":[{"id":202,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/200\/revisions\/202"}],"wp:attachment":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}