<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>[LINICKX].com &#187; ssh</title>
	<atom:link href="http://www.linickx.com/tag/ssh/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linickx.com</link>
	<description>Moments of Genius followed by Trash.</description>
	<lastBuildDate>Tue, 07 Feb 2012 15:06:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>password-less ssh login to JunOS</title>
		<link>http://www.linickx.com/3537/password-less-ssh-login-to-junos</link>
		<comments>http://www.linickx.com/3537/password-less-ssh-login-to-junos#comments</comments>
		<pubDate>Tue, 17 Jan 2012 13:35:05 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[id_rsa]]></category>
		<category><![CDATA[Juniper]]></category>
		<category><![CDATA[JunOS]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3537</guid>
		<description><![CDATA[Juniper (JunOS) SRX&#8217;s support ssh public key authentication. No-one likes to type passwords! Copyright &#169; 2012 [LINICKX].com. This Feed is for personal non-commercial use only. Please check my Site Terms and Conditions for full details on copyrights. If you have &#8230; <a href="http://www.linickx.com/3537/password-less-ssh-login-to-junos">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linickx.com/files/2012/01/junos_login.png" rel="lightbox[3537]"><img src="http://www.linickx.com/files/2012/01/junos_login.png" alt="" title="junos_login" width="471" height="234" class="aligncenter size-full wp-image-3538" /></a></p>
<p>Juniper (JunOS) SRX&#8217;s support ssh public key authentication.</p>
<pre class="brush: plain; title: ; notranslate">
nick&gt; show configuration system login | display set
set system login user nick uid 2001
set system login user nick class super-user
set system login user nick authentication ssh-rsa &quot;PASTE_KEY&quot;
nick&gt;
</pre>
<p>No-one likes to type passwords!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3537/password-less-ssh-login-to-junos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DenyHosts &#8211; Protecting against SSH Brute Force Attacks</title>
		<link>http://www.linickx.com/270/denyhosts-protecting-against-ssh-brute-force-attacks</link>
		<comments>http://www.linickx.com/270/denyhosts-protecting-against-ssh-brute-force-attacks#comments</comments>
		<pubDate>Thu, 12 Apr 2007 18:12:56 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[ips]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.linickx.com/blog/archives/270/denyhosts-protecting-against-ssh-brute-force-attacks/</guid>
		<description><![CDATA[If you look after a remote linux box, the chances are you use SSH, in order to connect to it you may even have to leave PORT 22 open to the whole Internet ! There are some basic security steps &#8230; <a href="http://www.linickx.com/270/denyhosts-protecting-against-ssh-brute-force-attacks">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you look after a remote linux box, the chances are you use SSH, in order to connect to it you may even have to leave PORT 22 open to the whole Internet !</p>
<p>There are some basic security steps that you can do to protect SSH, such as block the root user from logging in, and force users to use STRONG authentication.</p>
<p>Even after you&#8217;ve done all you can,  <a href="http://freshmeat.net/projects/logwatch/">logwatch</a> will report that people are still wasting your time &amp; resource by trying to break in ! This is where <a href="http://denyhosts.sourceforge.net/">DenyHosts</a> step in, it&#8217;s a small script (<em>daemon</em>) that keeps an eye on your SSH log file, if it spots someone trying to Brute Force Attack your SSH accounts, it adds them to hosts.deny (<em>it&#8217;s like a firewall for some applications</em>) and stops them from being able to connect.</p>
<p>I&#8217;m using redhat, so a pre-built <a href="http://dag.wieers.com/rpm/packages/denyhosts/">rpm is available</a>, if you already have DAG setup, you can use&#8230;</p>
<pre>yum install denyhosts</pre>
<p>I then had to run through the following steps (<em>as root</em>).</p>
<pre>
mkdir /usr/share/denyhosts
mkdir /usr/share/denyhosts/data/
echo '127.0.0.1' &gt; /usr/share/denyhosts/data/allowed-hosts
cd /usr/share/denyhosts
cp /usr/share/doc/denyhosts-2.6/denyhosts.cfg-dist ./denyhosts.cfg
cp /usr/share/doc/denyhosts-2.6/daemon-control-dist ./daemon-control
chmod 700 /usr/share/denyhosts/daemon-control
ln -s /usr/share/denyhosts/daemon-control /etc/init.d/denyhosts
ln -s /usr/share/denyhosts/denyhosts.cfg /etc/denyhosts.cfg
/sbin/chkconfig denyhosts on</pre>
<p>once you&#8217;ve charged through that marathon, in /etc/denyhosts.cfg you may want to take a look (<em>and change</em>) the following settings (<em>Variables</em>)</p>
<pre>
PURGE_DENY =
ADMIN_EMAIL =
SMTP_FROM = DenyHosts &lt;nobody@localhost&gt;</pre>
<p>finally once you&#8217;re happy, start the DenyHosts service</p>
<pre>/etc/init.d/denyhosts start</pre>
<p>Now you&#8217;re logwatch report will show how may tries they had, and then Denied !</p>
<pre>Refused incoming connections: 1.2.3.4  (some.name.com ): 2 Time(s)</pre>
<p>Of course one option commonly suggested is to change the SSH port number from 22 to something else, where as this will reduce the amount of attacks on the service, it does absolutely nothing to protect it; of course you could do both, it&#8217;s all a matter of choice <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/270/denyhosts-protecting-against-ssh-brute-force-attacks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

