<?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>Chris Irish &#124; Ruby, Rails, Javascript Developer &#124; Phoenix, AZ &#187; SSH</title>
	<atom:link href="http://www.christopherirish.com/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christopherirish.com</link>
	<description>Ruby, Rails, Javascript, all things web development related</description>
	<lastBuildDate>Mon, 19 Jan 2026 07:43:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>The authme, ssh key, bash function</title>
		<link>http://www.christopherirish.com/2010/04/19/the-authme-ssh-key-bash-function/</link>
		<comments>http://www.christopherirish.com/2010/04/19/the-authme-ssh-key-bash-function/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 16:04:07 +0000</pubDate>
		<dc:creator>Irish</dc:creator>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.supairish.com/?p=10</guid>
		<description><![CDATA[Often it can be a pain to remember all the username/password combinations for all the different servers we touch in our day to day development.  I&#8217;ve come to really like this lil&#8217; bash function given to me by my co-worker Anthony DiGirolamo. 123function authme &#123; &#160; ssh $@ 'cat &#62;&#62;.ssh/authorized_keys' &#60; ~/.ssh/id_rsa.pub &#125; Just put [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Often it can be a pain to remember all the username/password combinations for all the different servers we touch in our day to day development.  I&#8217;ve come to really like this lil&#8217; bash function given to me by my co-worker <a href="http://anthonydigirolamo.github.com">Anthony DiGirolamo</a>.</p>
<div class="codecolorer-container bash vibrant" 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="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> authme <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; <span style="color: #c20cb9; font-weight: bold;">ssh</span> $<span style="color: #000000; font-weight: bold;">@</span> <span style="color: #ff0000;">'cat &gt;&gt;.ssh/authorized_keys'</span> <span style="color: #000000; font-weight: bold;">&lt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa.pub<br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span></div></td></tr></tbody></table></div>
<p>Just put it in your ~/.bash_profile file or one of the other bash settings files you may be using.</p>
<p>Usage is like so</p>

<div class="wp-terminal">$ authme deploy@www.somedomain.com<br/></div>

<p>You&#8217;ll be prompted for your password then returned to the local terminal prompt.  This will ssh onto the given server and concatenate your ssh public key to the authorized_keys file.  Allowing you from there on out, not having to supply a password to get on the server through ssh.  Good stuff</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.christopherirish.com/2010/04/19/the-authme-ssh-key-bash-function/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
