<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.7" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Day 2 of 60: SSH agent authentication</title>
	<link>http://jc.ngo.org.uk/blog/2006/07/11/day-2-of-60-ssh-agent-authentication/</link>
	<description>It'll all be over in 60 days</description>
	<pubDate>Sat, 22 Nov 2008 00:40:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.7</generator>

	<item>
		<title>by: Jens Elkner</title>
		<link>http://jc.ngo.org.uk/blog/2006/07/11/day-2-of-60-ssh-agent-authentication/#comment-83</link>
		<pubDate>Mon, 04 Sep 2006 03:53:26 +0000</pubDate>
		<guid>http://jc.ngo.org.uk/blog/2006/07/11/day-2-of-60-ssh-agent-authentication/#comment-83</guid>
					<description>Well, I prefer to set it up in a global way, so that users may just call ssh-add [options] to add the credentials they want:

--- /usr/dt/bin/Xsession.orig   Thu Feb 23 14:18:36 2006
+++ /usr/dt/bin/Xsession        Wed Aug 23 14:05:06 2006
@@ -714,6 +714,13 @@
   fi

   export DT=true;
+       sshagent="`which ssh-agent`"
+       if [ -n "$sshagent" ] &#38;&#38; [ -x "$sshagent" ] &#38;&#38; [ -z "$SSH_AUTH_SOCK" ]; then
+               startup="$sshagent -- $startup"
+       elif [ -z "$sshagent" ] ; then
+               Log "$0: ssh-agent not found!"
+       fi
+
   case ${SHELL##*/} in

       csh ) $dtstart_shell -c "unsetenv _ PWD; \</description>
		<content:encoded><![CDATA[<p>Well, I prefer to set it up in a global way, so that users may just call ssh-add [options] to add the credentials they want:</p>
<p>&#8212; /usr/dt/bin/Xsession.orig   Thu Feb 23 14:18:36 2006<br />
+++ /usr/dt/bin/Xsession        Wed Aug 23 14:05:06 2006<br />
@@ -714,6 +714,13 @@<br />
   fi</p>
<p>   export DT=true;<br />
+       sshagent=&#8221;`which ssh-agent`&#8221;<br />
+       if [ -n &#8220;$sshagent&#8221; ] &amp;&amp; [ -x &#8220;$sshagent&#8221; ] &amp;&amp; [ -z &#8220;$SSH_AUTH_SOCK&#8221; ]; then<br />
+               startup=&#8221;$sshagent &#8212; $startup&#8221;<br />
+       elif [ -z &#8220;$sshagent&#8221; ] ; then<br />
+               Log &#8220;$0: ssh-agent not found!&#8221;<br />
+       fi<br />
+<br />
   case ${SHELL##*/} in</p>
<p>       csh ) $dtstart_shell -c &#8220;unsetenv _ PWD; \
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
