{"id":782,"date":"2013-04-29T10:45:41","date_gmt":"2013-04-29T07:45:41","guid":{"rendered":"http:\/\/www.fatihacar.com\/blog\/?p=782"},"modified":"2013-05-08T15:22:37","modified_gmt":"2013-05-08T12:22:37","slug":"disable-root-ssh-login-on-linux-server","status":"publish","type":"post","link":"https:\/\/www.fatihacar.com\/blog\/disable-root-ssh-login-on-linux-server\/","title":{"rendered":"Disable root SSH Login on Linux Server"},"content":{"rendered":"<p>Root user is the most authoritative user on linux operating systems. You can take measure for security with disable root ssh. You can connect to server with other users.<\/p>\n<p><strong>Edit sshd_config<\/strong><\/p>\n<blockquote><p>vi \/etc\/ssh\/sshd_config<\/p>\n<p>#LoginGraceTime 2m<br \/>\n#PermitRootLogin yes<br \/>\n#StrictModes yes<\/p>\n<p><strong>Note :<\/strong> &#8220;PermitRootLogin yes&#8221; is default value. This value allows ssh root login<br \/>\nYou have to change parameter and remove # symbol.<\/p>\n<p>#LoginGraceTime 2m<br \/>\nPermitRootLogin no<br \/>\n#StrictModes yes\n<\/p><\/blockquote>\n<p><strong>Edit Port<\/strong><\/p>\n<blockquote><p><strong>Note :<\/strong> You can change ssh connection port, then you can provide extra security.<\/p>\n<p>vi \/etc\/ssh\/sshd_config<br \/>\n#Port=22<\/p>\n<p>Change port number<\/p>\n<p>Port=2234\n<\/p><\/blockquote>\n<p><strong>Restart sshd Service<\/strong><\/p>\n<blockquote><p>service sshd restart<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Root user is the most authoritative user on linux operating systems. You can take measure for security with disable root ssh. You can connect to server with other users. Edit sshd_config vi \/etc\/ssh\/sshd_config #LoginGraceTime 2m #PermitRootLogin yes #StrictModes yes Note : &#8220;PermitRootLogin yes&#8221; is default value. This value allows ssh root login You have to&#8230;<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[27,18,95],"tags":[99,22,25],"class_list":["post-782","post","type-post","status-publish","format-standard","hentry","category-database-security","category-linux-unix","category-system-security","tag-database-security","tag-system-administration","tag-system-security"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-cC","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=782"}],"version-history":[{"count":4,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/782\/revisions"}],"predecessor-version":[{"id":786,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/782\/revisions\/786"}],"wp:attachment":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}