<?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>Pablo Endres's Blog &#187; Unix</title>
	<atom:link href="http://www.pabloendres.com/category/technology/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pabloendres.com</link>
	<description></description>
	<lastBuildDate>Tue, 18 May 2010 21:16:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>GnomeKeyring =? ssh-agent</title>
		<link>http://www.pabloendres.com/2009/05/05/gnomekeyring-ssh-agent/</link>
		<comments>http://www.pabloendres.com/2009/05/05/gnomekeyring-ssh-agent/#comments</comments>
		<pubDate>Tue, 05 May 2009 20:09:04 +0000</pubDate>
		<dc:creator>Pablo Endres</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.pabloendres.com/?p=77</guid>
		<description><![CDATA[This feature just popped up and started working after I upgraded to Fedora 10 and I though it was a standard function in gnome, but I was working with Per the other day and his Ubuntu 8.04 didn&#8217;t have it running out of the box.  So I had to take a look a the docs [...]]]></description>
			<content:encoded><![CDATA[<p>This feature just popped up and started working after I upgraded to Fedora 10 and I though it was a standard function in gnome, but I was working with Per the other day and his Ubuntu 8.04 didn&#8217;t have it running out of the box.  So I had to take a look a the docs to make it work:  http://live.gnome.org/GnomeKeyring/Ssh</p>
<p>This is just one of those features that make your life easier but handling all the ssh sessions for you, the best part is that is one of those setup once and forget feature.  Here is a brief introduction on how it works:</p>
<p>According to the ssh-agent <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh-agent">man</a>:</p>
<blockquote>
<pre><strong>     ssh-agent</strong> is a program to hold private keys used for public key authenti-
     cation (RSA, DSA).  The idea is that <strong>ssh-agent</strong> is started in the begin-
     ning of an X-session or a login session, and all other windows or pro-
     grams are started as clients to the ssh-agent program.  Through use of
     environment variables the agent can be located and automatically used for
     authentication when logging in to other machines using <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh&amp;sektion=1&amp;arch=&amp;apropos=0&amp;manpath=OpenBSD+Current">ssh(1)</a>.</pre>
</blockquote>
<p>So what gnome did was include an ssh-agent in the gnome-keyring(-daemon), so it has one interface to manage passwords, ssh keys, etc.  Underneath the hood this is how it works:</p>
<ol>
<li>When Gnome starts the gnome-keyring-daemon (if it is enabled in your conf)</li>
<li>The keyring manager starts the ssh-agent component and sets up the <tt>SSH_AUTH_SOCK</tt> variable, that will redirect ssh to make the queries to that socket</li>
<li>The SSH agent automatically loads files in <tt>~/.ssh</tt> having names starting with <tt>id_rsa</tt> or <tt>id_dsa </tt> or any other keys included by using the <tt>ssh-add command<br />
</tt></li>
</ol>
<p>That does the job.  If you need to get it working on your Gnome installation follow the instructions <a href="http://live.gnome.org/GnomeKeyring/Ssh">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pabloendres.com/2009/05/05/gnomekeyring-ssh-agent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
