<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Blocking SSH brute forcing using denyhosts</title>
	<atom:link href="http://edeca.net/wp/2010/01/blocking-ssh-brute-forcing-using-denyhosts/feed/" rel="self" type="application/rss+xml" />
	<link>http://edeca.net/wp/2010/01/blocking-ssh-brute-forcing-using-denyhosts/</link>
	<description>Musings of a geek</description>
	<lastBuildDate>Fri, 27 Jan 2012 02:59:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: RB</title>
		<link>http://edeca.net/wp/2010/01/blocking-ssh-brute-forcing-using-denyhosts/comment-page-1/#comment-171</link>
		<dc:creator>RB</dc:creator>
		<pubDate>Fri, 08 Jan 2010 09:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://edeca.net/wp/?p=254#comment-171</guid>
		<description>Hi David,

Nice article. I also use DenyHosts on my servers, as you say for the minimal effort involved in setting it up, it really is worthwhile.

You mention one security by obscurity measure of changing the SSH service port from 22 to something else, but then needing to specify the port when connecting. Don&#039;t forget you can add an entry to the SSH client configuration file (e.g. /etc/ssh/ssh_config) such as the one below to specify an alternative port. Issuing the command &quot;ssh server.keyboardcat.com&quot; will now automatically use port 2222.

&lt;code&gt;Host server.keyboardcat.com&lt;br /&gt;Port 2222&lt;/code&gt;

Regarding setting the ADMIN_EMAIL variable, I personally leave this &quot;commented out&quot;. There is no option in the configuration to summarise updates to weekly or monthly intervals, and I got tired of daily emails with a couple of new IP&#039;s in it. Alternatively, I have used a Munin plugin script to graph the DenyHosts ban list (http://www.tjansson.dk/?p=717) to keep tabs on the volume of attacks.

Optionally, the administrator can modify the BLOCK_SERVICE parameter inn the configuration file from &quot;sshd&quot; to &quot;ALL&quot;. This means an IP attempting an SSH bruteforce will not only be banned from access to the SSH service, but also to any other system services using TCP wrappers. As an aside, note that Apache2 will not use /etc/hosts.deny by default (on Ubuntu server at least).

Another optional step to consider is adding your management IP address (if it is static) to /etc/hosts.allow just to ensure you don&#039;t accidentally lock yourself out.

RB</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>Nice article. I also use DenyHosts on my servers, as you say for the minimal effort involved in setting it up, it really is worthwhile.</p>
<p>You mention one security by obscurity measure of changing the SSH service port from 22 to something else, but then needing to specify the port when connecting. Don&#8217;t forget you can add an entry to the SSH client configuration file (e.g. /etc/ssh/ssh_config) such as the one below to specify an alternative port. Issuing the command &#8220;ssh server.keyboardcat.com&#8221; will now automatically use port 2222.</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Host server.keyboardcat.com&lt;br /&gt;Port 2222</div></td></tr></tbody></table></div>
<p>Regarding setting the ADMIN_EMAIL variable, I personally leave this &#8220;commented out&#8221;. There is no option in the configuration to summarise updates to weekly or monthly intervals, and I got tired of daily emails with a couple of new IP&#8217;s in it. Alternatively, I have used a Munin plugin script to graph the DenyHosts ban list (<a href="http://www.tjansson.dk/?p=717" rel="nofollow">http://www.tjansson.dk/?p=717</a>) to keep tabs on the volume of attacks.</p>
<p>Optionally, the administrator can modify the BLOCK_SERVICE parameter inn the configuration file from &#8220;sshd&#8221; to &#8220;ALL&#8221;. This means an IP attempting an SSH bruteforce will not only be banned from access to the SSH service, but also to any other system services using TCP wrappers. As an aside, note that Apache2 will not use /etc/hosts.deny by default (on Ubuntu server at least).</p>
<p>Another optional step to consider is adding your management IP address (if it is static) to /etc/hosts.allow just to ensure you don&#8217;t accidentally lock yourself out.</p>
<p>RB</p>
]]></content:encoded>
	</item>
</channel>
</rss>

