<?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: SSH Key Authentication</title>
	<atom:link href="http://pthree.org/2007/02/10/ssh-key-authentication/feed/" rel="self" type="application/rss+xml" />
	<link>http://pthree.org/2007/02/10/ssh-key-authentication/</link>
	<description>Linux.  GNU.  Freedom.</description>
	<lastBuildDate>Sun, 14 Mar 2010 14:51:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<item>
		<title>By: Christopher Dale</title>
		<link>http://pthree.org/2007/02/10/ssh-key-authentication/#comment-79424</link>
		<dc:creator>Christopher Dale</dc:creator>
		<pubDate>Tue, 20 Nov 2007 19:31:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/02/10/ssh-key-authentication/#comment-79424</guid>
		<description>Hi everyone,

It looks like the ssh-agent stuff is a bit over-complicated for me... I chose to drop this in the ~/.ssh/config file on the remote computer:
&lt;code&gt;
Host hostname.com
   IdentityFile /home/randy/id_rsa
   User billy
&lt;/code&gt;
This way, I can be logged in on the remote computer as anyone and can still get back to my server by simply typing &lt;em&gt;ssh hostname.com&lt;/em&gt;. This also makes sshfs&#039;s connections transparent (no password prompt). Nice for automation and much easier (in my opinion) than ssh agents running around with there little black hats... :)

I do, however, like the ssh-agent idea for other uses though.

Thanks for the great tutorial,

Christopher</description>
		<content:encoded><![CDATA[<p>Hi everyone,</p>
<p>It looks like the ssh-agent stuff is a bit over-complicated for me&#8230; I chose to drop this in the ~/.ssh/config file on the remote computer:</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 />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Host hostname.com<br />
&nbsp; &nbsp;IdentityFile /home/randy/id_rsa<br />
&nbsp; &nbsp;User billy</div></td></tr></tbody></table></div>
<p>This way, I can be logged in on the remote computer as anyone and can still get back to my server by simply typing <em>ssh hostname.com</em>. This also makes sshfs&#8217;s connections transparent (no password prompt). Nice for automation and much easier (in my opinion) than ssh agents running around with there little black hats&#8230; <img src='http://pthree.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I do, however, like the ssh-agent idea for other uses though.</p>
<p>Thanks for the great tutorial,</p>
<p>Christopher</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://pthree.org/2007/02/10/ssh-key-authentication/#comment-38781</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 15 Mar 2007 19:52:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/02/10/ssh-key-authentication/#comment-38781</guid>
		<description>KDE starts ssh-agent (at least on my Kubuntu).</description>
		<content:encoded><![CDATA[<p>KDE starts ssh-agent (at least on my Kubuntu).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://pthree.org/2007/02/10/ssh-key-authentication/#comment-31252</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Sun, 11 Feb 2007 02:21:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/02/10/ssh-key-authentication/#comment-31252</guid>
		<description>You can do the following if you want one command for getting your key into authorized_keys:

&lt;pre&gt;
cat ~/.ssh/id_dsa.pub &#124; ssh user@remotehost.com &quot;cat &gt;&gt; ~/.ssh/authorized_keys&quot;
&lt;/pre&gt;

Be sure to also check out the &quot;AUTHORIZED_KEYS FILE FORMAT&quot; section in the sshd man page.  You can get some very fine grained control of what keys can and can&#039;t do when logging in.  For example, I use a passphrase-less key for backups, but only allow that key to run one command (the backup script).</description>
		<content:encoded><![CDATA[<p>You can do the following if you want one command for getting your key into authorized_keys:</p>
<pre>
cat ~/.ssh/id_dsa.pub | ssh <a href="mailto:user@remotehost.com">user@remotehost.com</a> "cat >> ~/.ssh/authorized_keys"
</pre>
<p>Be sure to also check out the &#8220;AUTHORIZED_KEYS FILE FORMAT&#8221; section in the sshd man page.  You can get some very fine grained control of what keys can and can&#8217;t do when logging in.  For example, I use a passphrase-less key for backups, but only allow that key to run one command (the backup script).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://pthree.org/2007/02/10/ssh-key-authentication/#comment-31188</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Sat, 10 Feb 2007 18:46:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/02/10/ssh-key-authentication/#comment-31188</guid>
		<description>dbr-

Correct.   That is why it is mentioned in the tutorial, and PuTTY is a great client for Windows users.  I highly recommend it.</description>
		<content:encoded><![CDATA[<p>dbr-</p>
<p>Correct.   That is why it is mentioned in the tutorial, and PuTTY is a great client for Windows users.  I highly recommend it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbr</title>
		<link>http://pthree.org/2007/02/10/ssh-key-authentication/#comment-31155</link>
		<dc:creator>dbr</dc:creator>
		<pubDate>Sat, 10 Feb 2007 15:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/02/10/ssh-key-authentication/#comment-31155</guid>
		<description>Doing cat id_dsa.pub &gt;&gt; ~/.ssh/authorized_keys won&#039;t overwrite anything in an existing authorized_keys file, since &gt;&gt; is append (&gt; is overwrite)

Anyone using Windows to connect to SSH-servers, the PuTTY-bundle is great (It includes GUI equivalents to ssh-agent, PageAnt, and ssh-keygen, PuTTYGen, and ssh/sftp/scp clients) [ http://www.chiark.greenend.org.uk/~sgtatham/putty/ ]
- Ben</description>
		<content:encoded><![CDATA[<p>Doing cat id_dsa.pub &gt;&gt; ~/.ssh/authorized_keys won&#8217;t overwrite anything in an existing authorized_keys file, since &gt;&gt; is append (&gt; is overwrite)</p>
<p>Anyone using Windows to connect to SSH-servers, the PuTTY-bundle is great (It includes GUI equivalents to ssh-agent, PageAnt, and ssh-keygen, PuTTYGen, and ssh/sftp/scp clients) [ <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" rel="nofollow">http://www.chiark.greenend.org.uk/~sgtatham/putty/</a> ]<br />
- Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://pthree.org/2007/02/10/ssh-key-authentication/#comment-31153</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Sat, 10 Feb 2007 14:59:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/02/10/ssh-key-authentication/#comment-31153</guid>
		<description>Christer-

I don&#039;t know of a way to combine the two commands.  If a file already exists containing some authorized keys, then you don&#039;t want to overwrite that file, so it&#039;s best to be careful.

Also, it sounds like you generated a key pair containing no passphrase.  When you generate the keys, it will prompt you to enter a passphrase protecting the keys.  If you enter past it, and don&#039;t enter a passphrase, as I suspect you did, then you&#039;ll never be prompted for it.  I would advice against entering past the passphrase prompt, and entering one, then using the SSH agent to manage it.</description>
		<content:encoded><![CDATA[<p>Christer-</p>
<p>I don&#8217;t know of a way to combine the two commands.  If a file already exists containing some authorized keys, then you don&#8217;t want to overwrite that file, so it&#8217;s best to be careful.</p>
<p>Also, it sounds like you generated a key pair containing no passphrase.  When you generate the keys, it will prompt you to enter a passphrase protecting the keys.  If you enter past it, and don&#8217;t enter a passphrase, as I suspect you did, then you&#8217;ll never be prompted for it.  I would advice against entering past the passphrase prompt, and entering one, then using the SSH agent to manage it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christer Edwards</title>
		<link>http://pthree.org/2007/02/10/ssh-key-authentication/#comment-31109</link>
		<dc:creator>Christer Edwards</dc:creator>
		<pubDate>Sat, 10 Feb 2007 07:57:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/02/10/ssh-key-authentication/#comment-31109</guid>
		<description>Two questions here:  1) can you combine those first two commands into one using something like &quot;scp ~/.ssh/id_dsa.pub user@yourserver.com:~/ &#124; cat id_dsa.pub &gt;&gt; .ssh/authorized_keys&quot;?  

2) What do you mean you&#039;re still using your passphrase when logging in remotely?  Since I generated and appended my local key to my irssi server I have not needed a password to connect or run any user commands.</description>
		<content:encoded><![CDATA[<p>Two questions here:  1) can you combine those first two commands into one using something like &#8220;scp ~/.ssh/id_dsa.pub <a href="mailto:user@yourserver.com">user@yourserver.com</a>:~/ | cat id_dsa.pub &gt;&gt; .ssh/authorized_keys&#8221;?  </p>
<p>2) What do you mean you&#8217;re still using your passphrase when logging in remotely?  Since I generated and appended my local key to my irssi server I have not needed a password to connect or run any user commands.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
