{"id":870,"date":"2019-10-09T23:39:41","date_gmt":"2019-10-09T10:39:41","guid":{"rendered":"https:\/\/www.ronella.xyz\/?p=870"},"modified":"2019-10-10T11:07:00","modified_gmt":"2019-10-09T22:07:00","slug":"securing-ubuntu-ssh","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=870","title":{"rendered":"Securing Ubuntu SSH"},"content":{"rendered":"<ol>\n<li>Update the <strong>\/etc\/ssh\/sshd_config<\/strong> file to have the following added:\n<pre>PermitRootLogin no<\/pre>\n<\/li>\n<li>Install <strong>fail2ban<\/strong> using the following command:\n<pre>sudo apt-get install fail2ban<\/pre>\n<\/li>\n<li>Create the file <strong>\/etc\/fail2ban\/jail.d\/jail-debian.local<\/strong> file to have the following:\n<pre>[sshd]\r\n enabled = true\r\n port = ssh\r\n filter = sshd\r\n logpath = \/var\/log\/auth.log\r\n maxretry = 6\r\n bantime = -1\r\n<\/pre>\n<\/li>\n<li>Restart the service using the following command:\n<pre>sudo service fail2ban restart<\/pre>\n<\/li>\n<\/ol>\n<p><em>See <a href=\"https:\/\/www.ronella.xyz\/?p=878\" target=\"_blank\" rel=\"noopener noreferrer\">Unbanning an IP<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update the \/etc\/ssh\/sshd_config file to have the following added: PermitRootLogin no Install fail2ban using the following command: sudo apt-get install fail2ban Create the file \/etc\/fail2ban\/jail.d\/jail-debian.local file to have the following: [sshd] enabled = true port = ssh filter = sshd logpath = \/var\/log\/auth.log maxretry = 6 bantime = -1 Restart the service using the following [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[23,12],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/870"}],"collection":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=870"}],"version-history":[{"count":8,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/870\/revisions"}],"predecessor-version":[{"id":882,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/870\/revisions\/882"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}