<?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>Rudkin On Linux, Mac and Tech &#187; 9.10</title>
	<atom:link href="http://rudkin.me.uk/tag/9-10/feed/" rel="self" type="application/rss+xml" />
	<link>http://rudkin.me.uk</link>
	<description>Paul Rudkin&#039;s trials and tribulations with Linux, Mac and technology in general</description>
	<lastBuildDate>Thu, 06 Oct 2011 03:33:30 +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>Append SSH Key to Remote Server</title>
		<link>http://rudkin.me.uk/2009/11/16/append-ssh-key-to-remote-server/</link>
		<comments>http://rudkin.me.uk/2009/11/16/append-ssh-key-to-remote-server/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 21:29:17 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[Karmic]]></category>
		<category><![CDATA[Server Elements]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[SSH Keys]]></category>

		<guid isPermaLink="false">http://www.rudkin.me.uk/?p=89</guid>
		<description><![CDATA[I first must apologise for not blogging for ages, I have no excuse other than laziness! I recently created a new server at home and install Ubuntu 9.10 Server on it.   As a consequence all the SSH keys I used to access my old server were lost and I needed to add them back again&#8230;.one [...]]]></description>
			<content:encoded><![CDATA[<p>I first must apologise for not blogging for ages, I have no excuse other than laziness!</p>
<p>I recently created a new server at home and install Ubuntu 9.10 Server on it.   As a consequence all the SSH keys I used to access my old server were lost and I needed to add them back again&#8230;.one at a time from each machine I use to access it.</p>
<p>Although this does not seem a big deal, the method I was using previously was as follows:-</p>
<pre>cat ~/.ssh/id_rsa.pub | ssh &lt;user&gt;@&lt;host&gt;
'dd of=.ssh/authorized_keys oflag=append conv=notrunc'</pre>
<p>Although this worked fine, I was catching up on my Linux reading and in <a title="Linux Journal Website" href="http://www.linuxjournal.com/" target="_blank">Linux Journal</a> #184 (August 2009) another reader Mark K. Zanfardino wrote in withe following more simplified command which works great on Ubuntu:-</p>
<pre>ssh-copy-id -i ~/.ssh/id_rsa.pub &lt;user&gt;@&lt;host&gt;</pre>
<p>This is not only easier to remember, it also checks that the key being added doesn&#8217;t already exist on the server!  Brilliant!</p>
]]></content:encoded>
			<wfw:commentRss>http://rudkin.me.uk/2009/11/16/append-ssh-key-to-remote-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

