<?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>kill the radio &#187; cygwin</title>
	<atom:link href="http://blog.killtheradio.net/tag/cygwin/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.killtheradio.net</link>
	<description>or die trying</description>
	<lastBuildDate>Fri, 18 Jun 2010 04:56:10 +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>SSH Agent on Cygwin</title>
		<link>http://blog.killtheradio.net/how-tos/ssh-agent-on-cygwin/</link>
		<comments>http://blog.killtheradio.net/how-tos/ssh-agent-on-cygwin/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 04:25:08 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=369</guid>
		<description><![CDATA[There are probably a billion guides for this already, but whatever. If you DON&#8217;T have a ~/.bash_profile (a file that gets executed every time you start cyg): touch ~/.bash_profile chmod a+x ~/.bash_profile Now that you have the file, add this to it: SSHAGENT=/usr/bin/ssh-agent SSHAGENTARGS="-s" if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then eval `$SSHAGENT [...]]]></description>
			<content:encoded><![CDATA[<p>There are probably a billion guides for this already, but whatever. If you DON&#8217;T have a ~/.bash_profile (a file that gets executed every time you start cyg):</p>
<pre>
touch ~/.bash_profile
chmod a+x ~/.bash_profile
</pre>
<p>Now that you have the file, add this to it:</p>
<pre>
SSHAGENT=/usr/bin/ssh-agent
SSHAGENTARGS="-s"
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then
	eval `$SSHAGENT $SSHAGENTARGS`
	trap "kill $SSH_AGENT_PID" 0
fi
</pre>
<p>This will start up ssh-agent for each Cygwin shell you have open. Close your Cygwin shell (if one is open) and open a new one. Now type:</p>
<pre>
ssh-add ~/.ssh/id_rsa
[enter your password]
</pre>
<p>Voila! No more typing your stupid password every time you need to ssh somewhere. Note that if you close the Cygwin window, you&#8217;ll have to ssh-add your key again! This is good security&#8230;you can close the window when you&#8217;re done and someone who happens on your computer sitting there won&#8217;t have password-less access to any of your secure logins.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/how-tos/ssh-agent-on-cygwin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
