<?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>Tea-Driven Development &#187; ssh</title>
	<atom:link href="http://blog.mattwynne.net/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mattwynne.net</link>
	<description>Matt Wynne taking it one tea at a time</description>
	<lastBuildDate>Tue, 10 Jan 2012 20:07:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Pain-free and fun password-less SSH with ssh-forever</title>
		<link>http://blog.mattwynne.net/2009/08/16/pain-free-and-fun-password-less-ssh-with-ssh-forever/</link>
		<comments>http://blog.mattwynne.net/2009/08/16/pain-free-and-fun-password-less-ssh-with-ssh-forever/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 00:51:20 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Linux / OS X Newbie Tips]]></category>
		<category><![CDATA[Password]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.mattwynne.net/2009/08/16/pain-free-and-fun-password-less-ssh-with-ssh-forever/</guid>
		<description><![CDATA[A while ago I wrote a tip that showed you how to copy your public SSH key to a remote server to allow you to login without entering a password every time. I&#8217;ve since put this into a script that I use, and today I got sick enough of copying that script onto yet another [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago I <a href="http://blog.mattwynne.net/2009/01/13/quick-and-easy-password-less-ssh-login-on-remote-servers/">wrote a tip</a> that showed you how to copy your public SSH key to a remote server to allow you to login without entering a password every time. I&#8217;ve since put this into a script that I use, and today I got sick enough of copying that script onto yet another machine that I packaged it up as a gem, so now we can all use it.</p>

<p>It works just like the plain old &#8216;ssh&#8217; command, but this time you&#8217;ll never have to enter your password again:</p>

<p><div>
<pre class="txt" style="font-family:monospace;">ssh-forever username@yourserver.com</pre>
</div></p>

<p>Your key will be generated (if necessary), copied to your server, and you&#8217;ll be logged in as normal.</p>

<h2>Installation</h2>

<p><div>
<pre class="txt" style="font-family:monospace;">gem sources --add http://gemcutter.org
gem install ssh-forever</pre>
</div></p>

<h2>Example:</h2>

<p><div>
<pre class="txt" style="font-family:monospace;">[matt@bowie ssh-forever (master)]$ ssh-forever mattwynne@mattwynne.net
You do not appear to have a public key. I expected to find one at /Users/matt/.ssh/id_rsa.pub
Would you like me to generate one? [Y/n]y
Copying your public key to the remote server. Prepare to enter your password for the last time.
mattwynne@mattwynne.net's password:
Success. From now on you can just use plain old 'ssh'. Logging you in...
Linux broncos 2.6.29-xeon-aufs2.29-ipv6-qos-grsec #1 SMP Thu Jul 9 16:42:58 PDT 2009 x86_64
  _
 | |__ _ _ ___ _ _  __ ___ ___
 | '_ \ '_/ _ \ ' \/ _/ _ (_-&lt;
 |_.__/_| \___/_||_\__\___/__/
&nbsp;
 Welcome to broncos.dreamhost.com
&nbsp;
Any malicious and/or unauthorized activity is strictly forbidden.
All activity may be logged by DreamHost Web Hosting.
&nbsp;
Last login: Sat Aug 15 17:24:17 2009
[broncos]$</pre>
</div></p>

<h2>Why?</h2>

<p>Because I can never remember how to do it by hand. Now I don&#8217;t have to, and nor do you.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mattwynne.net/2009/08/16/pain-free-and-fun-password-less-ssh-with-ssh-forever/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Quick and Easy Password-less SSH Login on Remote Servers</title>
		<link>http://blog.mattwynne.net/2009/01/13/quick-and-easy-password-less-ssh-login-on-remote-servers/</link>
		<comments>http://blog.mattwynne.net/2009/01/13/quick-and-easy-password-less-ssh-login-on-remote-servers/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 17:34:27 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Linux / OS X Newbie Tips]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.mattwynne.net/2009/01/13/quick-and-easy-password-less-ssh-login-on-remote-servers/</guid>
		<description><![CDATA[Like so many posts in this category, this is surely child&#8217;s play to you linux aficionados. For those of us mere morals though, this is a very useful little trick, and it shows how you can easily move data from your local workstation to a remote server using SSH. If you don&#8217;t already have a [...]]]></description>
			<content:encoded><![CDATA[<p>Like so many posts in this category, this is surely child&#8217;s play to you linux aficionados. For those of us mere morals though, this is a very useful little trick, and it shows how you can easily move data from your local workstation to a remote server using SSH.</p>

<p>If you don&#8217;t already have a public / private key pair on your local workstation do this:</p>

<p>ssh-keygen -t rsa</p>

<p>If you have no idea what I&#8217;m talking about, try looking for this:</p>

<p>ls ~/.ssh</p>

<p>Did you see anything? You&#8217;re looking for a file called id_rsa.pub, I would guess.</p>

<p>Now that you have generated your key, to copy the public key part up to the remote server, do this:</p>

<p>ssh remote-user@remote-server.com &#8220;echo &#8216;<code>cat ~/.ssh/id_rsa.pub</code>&#8216; &gt;&gt; ~/.ssh/authorized_keys&#8221;</p>

<p>You should now be able to dance around the inner bits of the internet to your heart&#8217;s content.</p>

<p>Thanks to <a href="http://www.daniellucraft.com/blog/">Dan Lucraft</a> for the technology behind this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mattwynne.net/2009/01/13/quick-and-easy-password-less-ssh-login-on-remote-servers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

