{"id":216,"date":"2011-04-10T13:12:19","date_gmt":"2011-04-10T20:12:19","guid":{"rendered":"http:\/\/seanism.com\/blog\/?p=216"},"modified":"2011-08-02T23:11:25","modified_gmt":"2011-08-03T06:11:25","slug":"remove-an-ip-address-from-denyhosts","status":"publish","type":"post","link":"https:\/\/seanism.com\/blog\/2011\/04\/remove-an-ip-address-from-denyhosts\/","title":{"rendered":"Remove an IP Address from denyhosts"},"content":{"rendered":"<p>I recently setup a VPS and installed Denyhosts. \u00a0I must have entered an incorrect password at some point cause I couldn&#8217;t SSH into my server. \u00a0After removing my IP from \/etc\/hosts.deny I could log in once but after that I was added to the hosts.deny file again.<\/p>\n<p>To completely remove an IP address from Denyhosts you&#8217;ll need to&#8230;<\/p>\n<ol>\n<li>Stop DenyHosts &#8211; <strong>sudo \/etc\/init.d\/denyhosts stop<\/strong><\/li>\n<li>Remove the IP address from \/etc\/hosts.deny<\/li>\n<li>Edit \/var\/lib\/denyhosts\/hosts and remove the lines containing the IP address. Save the file.<\/li>\n<li>Edit \/var\/lib\/denyhosts\/hosts-restricted and remove the lines containing the IP address. Save the file.<\/li>\n<li>Edit \/var\/lib\/denyhosts\/hosts-root and remove the lines containing the IP address. Save the file.<\/li>\n<li>Edit \/var\/lib\/denyhosts\/hosts-valid and remove the lines containing the IP address. Save the file.<\/li>\n<li>Edit \/var\/lib\/denyhosts\/user-hosts and remove the lines containing the IP address. Save the file.<\/li>\n<li>(optional) Consider adding the IP address to \/var\/lib\/denyhosts\/allowed-hosts<\/li>\n<li>Start DenyHosts-\u00a0<strong>sudo \/etc\/init.d\/denyhosts start<\/strong><\/li>\n<\/ol>\n<p><a href=\"http:\/\/denyhosts.sourceforge.net\/faq.html#3_19\">http:\/\/denyhosts.sourceforge.net\/faq.html#3_19<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently setup a VPS and installed Denyhosts. \u00a0I must have entered an incorrect password at some point cause I couldn&#8217;t SSH into my server. \u00a0After removing my IP from \/etc\/hosts.deny I could log in once but after that I was added to the hosts.deny file again. To completely remove an IP address from Denyhosts&#8230;<\/p>\n","protected":false},"author":1,"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":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[30],"tags":[83,84,11],"class_list":["post-216","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos","tag-denyhosts","tag-ubuntu"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1vc3H-3u","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/posts\/216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/comments?post=216"}],"version-history":[{"count":8,"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/posts\/216\/revisions"}],"predecessor-version":[{"id":316,"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/posts\/216\/revisions\/316"}],"wp:attachment":[{"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/media?parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/categories?post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/tags?post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}