<?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: HOWTO: Five steps to a more secure SSH</title>
	<atom:link href="http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/</link>
	<description>www.thinkhole.org</description>
	<lastBuildDate>Tue, 02 Feb 2010 16:30:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Giuseppe</title>
		<link>http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/comment-page-1/#comment-200641</link>
		<dc:creator>Giuseppe</dc:creator>
		<pubDate>Wed, 24 Sep 2008 12:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/#comment-200641</guid>
		<description>Uhm... I&#039;m a novice! I did all the good suggestions above... Now I&#039;m not able to log using Putty anymore...
I changed the port...
HELP !</description>
		<content:encoded><![CDATA[<p>Uhm&#8230; I&#8217;m a novice! I did all the good suggestions above&#8230; Now I&#8217;m not able to log using Putty anymore&#8230;<br />
I changed the port&#8230;<br />
HELP !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregg Lain</title>
		<link>http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/comment-page-1/#comment-191433</link>
		<dc:creator>Gregg Lain</dc:creator>
		<pubDate>Sun, 24 Aug 2008 23:50:07 +0000</pubDate>
		<guid isPermaLink="false">http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/#comment-191433</guid>
		<description>Nice writeup - thanks for the extra stuff about the ssh keys - yes w/o a password if the box is stolen, its done.

I read this somewhere and works great:
Change port from 22 to 1025+
With Portsentry, it scans for daemonized ports - since 22 is no longer being used - and if the firewall allows port 22 incoming, now you have a honeypot for SSH hackers.  
Portensetry - up portsentry to scan up to say 25000 or so - against the documentation.  I noticed most portscanners start at 1025 where the default portsentry stops...</description>
		<content:encoded><![CDATA[<p>Nice writeup &#8211; thanks for the extra stuff about the ssh keys &#8211; yes w/o a password if the box is stolen, its done.</p>
<p>I read this somewhere and works great:<br />
Change port from 22 to 1025+<br />
With Portsentry, it scans for daemonized ports &#8211; since 22 is no longer being used &#8211; and if the firewall allows port 22 incoming, now you have a honeypot for SSH hackers.<br />
Portensetry &#8211; up portsentry to scan up to say 25000 or so &#8211; against the documentation.  I noticed most portscanners start at 1025 where the default portsentry stops&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: renato gallo</title>
		<link>http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/comment-page-1/#comment-109400</link>
		<dc:creator>renato gallo</dc:creator>
		<pubDate>Thu, 25 Oct 2007 05:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/#comment-109400</guid>
		<description>at my job they passed me a ppk file, now I need to import it in my gentoo machine.... howto ?</description>
		<content:encoded><![CDATA[<p>at my job they passed me a ppk file, now I need to import it in my gentoo machine&#8230;. howto ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asrol</title>
		<link>http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/comment-page-1/#comment-94879</link>
		<dc:creator>Asrol</dc:creator>
		<pubDate>Fri, 31 Aug 2007 18:04:52 +0000</pubDate>
		<guid isPermaLink="false">http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/#comment-94879</guid>
		<description>Question:

#  burkass Says:
August 24th, 2007 at 2:36 pm

by the way can i allow 1 ip address.

btw i just want only 192.168.0.1 to control my comp via ssh.
how can i do it ?

Answer:

User TCP Wrappers.

Command ;

vi /etc/hosts.deny
# add line
ALL:ALL


vi /etc/hosts.allow
# add line
sshd:192.168.0.1 

More --


Change the ssh default port from 22 port to others, such as port 2995 


cd /etc/ssh/
vi sshd_config
Find Port 22 and replace with;

Port 2995

Dont use root to login.

cd /etc/ssh/
vi sshd_config

Find PermitRootLogin and change to ;

PermitRootLogin no


after all,

killall -XUP xinetd
/etc/init.d/sshd restart



Hope its useful to others too

regards

thanks</description>
		<content:encoded><![CDATA[<p>Question:</p>
<p>#  burkass Says:<br />
August 24th, 2007 at 2:36 pm</p>
<p>by the way can i allow 1 ip address.</p>
<p>btw i just want only 192.168.0.1 to control my comp via ssh.<br />
how can i do it ?</p>
<p>Answer:</p>
<p>User TCP Wrappers.</p>
<p>Command ;</p>
<p>vi /etc/hosts.deny<br />
# add line<br />
ALL:ALL</p>
<p>vi /etc/hosts.allow<br />
# add line<br />
sshd:192.168.0.1 </p>
<p>More &#8211;</p>
<p>Change the ssh default port from 22 port to others, such as port 2995 </p>
<p>cd /etc/ssh/<br />
vi sshd_config<br />
Find Port 22 and replace with;</p>
<p>Port 2995</p>
<p>Dont use root to login.</p>
<p>cd /etc/ssh/<br />
vi sshd_config</p>
<p>Find PermitRootLogin and change to ;</p>
<p>PermitRootLogin no</p>
<p>after all,</p>
<p>killall -XUP xinetd<br />
/etc/init.d/sshd restart</p>
<p>Hope its useful to others too</p>
<p>regards</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: burkass</title>
		<link>http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/comment-page-1/#comment-92848</link>
		<dc:creator>burkass</dc:creator>
		<pubDate>Fri, 24 Aug 2007 19:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/#comment-92848</guid>
		<description>by the way can i allow 1 ip address.

btw i just want only 192.168.0.1 to control my comp via ssh.
how can i do it ?</description>
		<content:encoded><![CDATA[<p>by the way can i allow 1 ip address.</p>
<p>btw i just want only 192.168.0.1 to control my comp via ssh.<br />
how can i do it ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Archer</title>
		<link>http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/comment-page-1/#comment-52510</link>
		<dc:creator>Tim Archer</dc:creator>
		<pubDate>Tue, 10 Apr 2007 00:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/#comment-52510</guid>
		<description>I also have a small writeup on some minor changes I make to secure SSH (disable root login, change login grace time, change protocol, change port, etc)

My writeup is at:
&lt;a href=&quot;http://timarcher.com/?q=node/46&quot; rel=&quot;nofollow&quot;&gt;http://timarcher.com/?q=node/46&lt;/a&gt;

I hope it helps somebody!</description>
		<content:encoded><![CDATA[<p>I also have a small writeup on some minor changes I make to secure SSH (disable root login, change login grace time, change protocol, change port, etc)</p>
<p>My writeup is at:<br />
<a href="http://timarcher.com/?q=node/46" rel="nofollow">http://timarcher.com/?q=node/46</a></p>
<p>I hope it helps somebody!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/comment-page-1/#comment-12230</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Thu, 02 Nov 2006 16:38:13 +0000</pubDate>
		<guid isPermaLink="false">http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/#comment-12230</guid>
		<description>You should add a section on role-based keys: limiting what commands can be run by a given key.  It&#039;s great for role-based accounts such as for remote backup, and a good alternative to disabling root logins entirely.</description>
		<content:encoded><![CDATA[<p>You should add a section on role-based keys: limiting what commands can be run by a given key.  It&#8217;s great for role-based accounts such as for remote backup, and a good alternative to disabling root logins entirely.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikep</title>
		<link>http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/comment-page-1/#comment-12158</link>
		<dc:creator>mikep</dc:creator>
		<pubDate>Thu, 02 Nov 2006 02:50:59 +0000</pubDate>
		<guid isPermaLink="false">http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/#comment-12158</guid>
		<description>Re: alternate ports:

For unix/command line ssh, edit/create ~/.ssh/config and make a section that looks like:

host 192.168.1.3
        Port 8022
        Compression yes
        CompressionLevel 9

Plus whatever other config changes that are different for this host, then when you ssh to that IP (or hostname), it will automatically use port 8022 instead of the default 22.  You can also put your port forwards, different ciphers, etc, basically, whatever you can set in the system-wide ssh_config can be set here.</description>
		<content:encoded><![CDATA[<p>Re: alternate ports:</p>
<p>For unix/command line ssh, edit/create ~/.ssh/config and make a section that looks like:</p>
<p>host 192.168.1.3<br />
        Port 8022<br />
        Compression yes<br />
        CompressionLevel 9</p>
<p>Plus whatever other config changes that are different for this host, then when you ssh to that IP (or hostname), it will automatically use port 8022 instead of the default 22.  You can also put your port forwards, different ciphers, etc, basically, whatever you can set in the system-wide ssh_config can be set here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 5 Steps To Secure SSH at Information Technology Blog</title>
		<link>http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/comment-page-1/#comment-12122</link>
		<dc:creator>5 Steps To Secure SSH at Information Technology Blog</dc:creator>
		<pubDate>Wed, 01 Nov 2006 16:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/#comment-12122</guid>
		<description>[...] Original Story: Link [...]</description>
		<content:encoded><![CDATA[<p>[...] Original Story: Link [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/comment-page-1/#comment-12099</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Wed, 01 Nov 2006 14:03:36 +0000</pubDate>
		<guid isPermaLink="false">http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/#comment-12099</guid>
		<description>I agree with Mark, you shouldn&#039;t be allowing connections from anywhere to your ssh port. It&#039;s trivial to do and is worth more to secure your system than most of these other suggestions combined.</description>
		<content:encoded><![CDATA[<p>I agree with Mark, you shouldn&#8217;t be allowing connections from anywhere to your ssh port. It&#8217;s trivial to do and is worth more to secure your system than most of these other suggestions combined.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
