{"id":36,"date":"2019-04-16T18:53:28","date_gmt":"2019-04-16T18:53:28","guid":{"rendered":"https:\/\/serverhub.com\/kb\/?p=36"},"modified":"2019-04-16T18:53:28","modified_gmt":"2019-04-16T18:53:28","slug":"how-to-secure-ssh","status":"publish","type":"post","link":"https:\/\/serverhub.com\/kb\/how-to-secure-ssh\/","title":{"rendered":"How to Secure SSH"},"content":{"rendered":"\n<p>In this post, you will learn how to secure SSH on your Bare Metal Server<g class=\"gr_ gr_116 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style replaceWithoutSep\" id=\"116\" data-gr-id=\"116\">.<\/g><br><\/p>\n\n\n\n<p>Securing SSH on your server is quick and easy, to secure the <g class=\"gr_ gr_4 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace\" id=\"4\" data-gr-id=\"4\"><g class=\"gr_ gr_4 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace\" id=\"4\" data-gr-id=\"4\">server ,<\/g><\/g> we would disable direct root login. That could be done via\u00a0 sshd_config file.<\/p>\n\n\n\n<p>Here Protocol 2 needs to be used which is more secure.<\/p>\n\n\n\n<p>Refer the following steps for the same:-<\/p>\n\n\n\n<p>1)\u00a0\u00a0\u00a0\u00a0\u00a0 vi \/etc\/ssh\/sshd_config<br>2) Change Protocol 2,1 to Protocol 2<br>4) PermitRootLogin yes = no<br>5) Restart SSHD: \/etc\/rc.d\/init.d\/sshd restart<\/p>\n\n\n\n<p>Thats it! Your SSH is now secure. <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, you will learn how to secure SSH on your Bare Metal Server. Securing SSH on your server is quick and easy, to secure the server , we would disable direct root login. That could be done via\u00a0 sshd_config file. Here Protocol 2 needs to be used which is more secure. Refer the &#8230; <a title=\"How to Secure SSH\" class=\"read-more\" href=\"https:\/\/serverhub.com\/kb\/how-to-secure-ssh\/\" aria-label=\"More on How to Secure SSH\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[7],"tags":[10,18,17],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-linux-administration","tag-linux-administration","tag-securing-ssh","tag-ssh"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":0,"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"wp:attachment":[{"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}