<?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: Installing and Using a SSH Server</title>
	<atom:link href="http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/</link>
	<description>News, Tips, and How-Tos for Ubuntu Linux</description>
	<lastBuildDate>Thu, 02 Sep 2010 12:08:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: aikonbrasil</title>
		<link>http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-81644</link>
		<dc:creator>aikonbrasil</dc:creator>
		<pubDate>Mon, 08 Mar 2010 23:44:41 +0000</pubDate>
		<guid isPermaLink="false">http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-81644</guid>
		<description>An Excellent Post, Congratulation !!!!!!!!

I will be visiting your blog all the time.

Thanks.</description>
		<content:encoded><![CDATA[<p>An Excellent Post, Congratulation !!!!!!!!</p>
<p>I will be visiting your blog all the time.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaun Millalonco</title>
		<link>http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-63163</link>
		<dc:creator>Jaun Millalonco</dc:creator>
		<pubDate>Wed, 01 Jul 2009 19:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-63163</guid>
		<description>My first visit here, found the blog accidentally really, and I just wanted to say I&#039;ve enjoyed my visit and had some good reads while here :)
Juan</description>
		<content:encoded><![CDATA[<p>My first visit here, found the blog accidentally really, and I just wanted to say I&#8217;ve enjoyed my visit and had some good reads while here <img src='http://tombuntu.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Juan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: analog_G</title>
		<link>http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-8384</link>
		<dc:creator>analog_G</dc:creator>
		<pubDate>Fri, 29 Feb 2008 18:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-8384</guid>
		<description>Great post.  So simple I was able to call my wife from work and she installed openSSH from a command prompt.  I am now using PuTTY.exe on my Windows machine at work to connect (SSH) to my Linux Machine at home. I just modified my sshd_config file remotely to only allow me as an openSSH user.  Cool stuff.</description>
		<content:encoded><![CDATA[<p>Great post.  So simple I was able to call my wife from work and she installed openSSH from a command prompt.  I am now using PuTTY.exe on my Windows machine at work to connect (SSH) to my Linux Machine at home. I just modified my sshd_config file remotely to only allow me as an openSSH user.  Cool stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram</title>
		<link>http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-8289</link>
		<dc:creator>Ram</dc:creator>
		<pubDate>Thu, 28 Feb 2008 10:56:46 +0000</pubDate>
		<guid isPermaLink="false">http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-8289</guid>
		<description>Wonderful post bro. Simple n clear explanation.</description>
		<content:encoded><![CDATA[<p>Wonderful post bro. Simple n clear explanation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: db0</title>
		<link>http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-8024</link>
		<dc:creator>db0</dc:creator>
		<pubDate>Sun, 24 Feb 2008 18:16:57 +0000</pubDate>
		<guid isPermaLink="false">http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-8024</guid>
		<description>Excellent post. This is exactly what I needed to administer my girlfriends computer without asking for a rdc connection every time :)

Cheers!</description>
		<content:encoded><![CDATA[<p>Excellent post. This is exactly what I needed to administer my girlfriends computer without asking for a rdc connection every time <img src='http://tombuntu.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-7741</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 20 Feb 2008 06:24:45 +0000</pubDate>
		<guid isPermaLink="false">http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-7741</guid>
		<description>Jonas: 
Thanks for the tip on changing the port in ssh_config.

Tony:
Public key authentication is tomorrow&#039;s post :)</description>
		<content:encoded><![CDATA[<p>Jonas:<br />
Thanks for the tip on changing the port in ssh_config.</p>
<p>Tony:<br />
Public key authentication is tomorrow&#8217;s post <img src='http://tombuntu.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-7728</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Wed, 20 Feb 2008 02:37:17 +0000</pubDate>
		<guid isPermaLink="false">http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-7728</guid>
		<description>Quick-and-dirty, and assuming it is your server so you have root-access to it.

On the server,

Make sure you have the following in /etc/ssh/sshd_config:

PubkeyAuthentication yes
PasswordAuthentication no

On the client, do:

1. ssh-keygen -t rsa (up to you if you want to use a pass-phrase or not. As long as you keep the key-files secured, it is more convenient without one).
2. ssh-copy-id -i ~/.ssh/id_rsa.pub username@server (this copies the pub-key to the server)

Finally, you should be able to do ssh server. The first time you will get a warning, and then you will be asked about your pass-phrase if you created one. Otherwise, you should be let in. This assumes that you have the same username (and the same UID and GID) on both the client and the server though. 

Finally, as root on the server /etc/init.d/ssh restart

Note though that I would recommend to NOT turn off password authenciation until you know the pubkey setup works...

Now, if you followed the suggestions to make sure only trusted users are allowed to use ssh and changing the portnumber, a potential hacker would need:

1. To find out the correct portnumber.
2. Find the correct username
3. Get access to your keyfile somehow.

Note too that if you just want to use this on a server that you do not have root access to, it should work too except that you of course have to rely on the server being properly set up in the first place (or pester the administrator to set it up for you...). If it allows ssh-logins, I would hope that it is.</description>
		<content:encoded><![CDATA[<p>Quick-and-dirty, and assuming it is your server so you have root-access to it.</p>
<p>On the server,</p>
<p>Make sure you have the following in /etc/ssh/sshd_config:</p>
<p>PubkeyAuthentication yes<br />
PasswordAuthentication no</p>
<p>On the client, do:</p>
<p>1. ssh-keygen -t rsa (up to you if you want to use a pass-phrase or not. As long as you keep the key-files secured, it is more convenient without one).<br />
2. ssh-copy-id -i ~/.ssh/id_rsa.pub username@server (this copies the pub-key to the server)</p>
<p>Finally, you should be able to do ssh server. The first time you will get a warning, and then you will be asked about your pass-phrase if you created one. Otherwise, you should be let in. This assumes that you have the same username (and the same UID and GID) on both the client and the server though. </p>
<p>Finally, as root on the server /etc/init.d/ssh restart</p>
<p>Note though that I would recommend to NOT turn off password authenciation until you know the pubkey setup works&#8230;</p>
<p>Now, if you followed the suggestions to make sure only trusted users are allowed to use ssh and changing the portnumber, a potential hacker would need:</p>
<p>1. To find out the correct portnumber.<br />
2. Find the correct username<br />
3. Get access to your keyfile somehow.</p>
<p>Note too that if you just want to use this on a server that you do not have root access to, it should work too except that you of course have to rely on the server being properly set up in the first place (or pester the administrator to set it up for you&#8230;). If it allows ssh-logins, I would hope that it is.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-7716</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Tue, 19 Feb 2008 22:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-7716</guid>
		<description>Wonderfully informative post. 
Can you explain how to use public key authentication?</description>
		<content:encoded><![CDATA[<p>Wonderfully informative post.<br />
Can you explain how to use public key authentication?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-7699</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Tue, 19 Feb 2008 18:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-7699</guid>
		<description>I think you missed one important aspect in securing a ssh-server: don&#039;t allow people (even if it&#039;s just yourself) to connect to it using passwords. Do it using public key authenciation, and brute force password crackers will work in vain.

Of course, using public keys provide an additional bonus apart from better security. It makes using sshfs more convenient in that you can mount a ssh directory without being prompted for a password or passphrase at boot-time, especially convenient if you mount them using fstab.

And speaking of convenient...since you mentioned changing the port of the server you might want to change the corresponding part of the client ssh_config file. Just so you don&#039;t have to remember adding the -p 2222 every time.</description>
		<content:encoded><![CDATA[<p>I think you missed one important aspect in securing a ssh-server: don&#8217;t allow people (even if it&#8217;s just yourself) to connect to it using passwords. Do it using public key authenciation, and brute force password crackers will work in vain.</p>
<p>Of course, using public keys provide an additional bonus apart from better security. It makes using sshfs more convenient in that you can mount a ssh directory without being prompted for a password or passphrase at boot-time, especially convenient if you mount them using fstab.</p>
<p>And speaking of convenient&#8230;since you mentioned changing the port of the server you might want to change the corresponding part of the client ssh_config file. Just so you don&#8217;t have to remember adding the -p 2222 every time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fer</title>
		<link>http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-7696</link>
		<dc:creator>Fer</dc:creator>
		<pubDate>Tue, 19 Feb 2008 17:26:36 +0000</pubDate>
		<guid isPermaLink="false">http://tombuntu.com/index.php/2008/02/19/installing-and-using-a-ssh-server/#comment-7696</guid>
		<description>Nice!

Cheers from Barcelona, Spain</description>
		<content:encoded><![CDATA[<p>Nice!</p>
<p>Cheers from Barcelona, Spain</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: tombuntu.com @ 2010-09-07 15:36:15 -->