<?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>bobpeers -&#62; blog &#187; rsync</title>
	<atom:link href="http://blog.bobpeers.com/tag/rsync/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bobpeers.com</link>
	<description>Better late than never</description>
	<lastBuildDate>Fri, 24 Jun 2011 12:34:48 +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>Rsync Over SSH Using Alternate Port and Private Key</title>
		<link>http://blog.bobpeers.com/2008/06/01/rsync-over-ssh-using-alternate-port-and-private-key/</link>
		<comments>http://blog.bobpeers.com/2008/06/01/rsync-over-ssh-using-alternate-port-and-private-key/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 19:36:56 +0000</pubDate>
		<dc:creator>Bob Peers</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[private key]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.bobpeers.com/2008/06/01/rsync-over-ssh-using-alternate-port-and-private-key/</guid>
		<description><![CDATA[A previous post described how to set up a public/private key to log in to my disk station without a password and using an alternate port i.e. not port 22. One of the consequences of this is that rsync no longer works without a few tweaks since by default it works over port 22 and [...]]]></description>
			<content:encoded><![CDATA[<p>A <a href="http://blog.bobpeers.com/2008/05/30/ssh-into-a-synology-disk-station-using-secure-keys/">previous post </a>described how to set up a public/private key to log in to my disk station without a password and using an alternate port i.e. not port 22.</p>
<p>One of the consequences of this is that rsync no longer works without a few tweaks since by default it works over port 22 and expects a password.<br /> To fix this just use the command below and rsync will work without interaction (assuming the key passphrase was left empty).</p>
<pre>#  rsync -au -e 'ssh -p 99 -i /home/username/.ssh/id_rsa' /path/to/source HOST:/path/to/destination</pre>
<p>Just replace -p 99 with your SSH port and /home/username/.ssh/id_rsa with the location of you private key.</p>
<p><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;counturl=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;count=none&amp;text=Rsync%20Over%20SSH%20Using%20Alternate%20Port%20and%20Private%20Key" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;counturl=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;count=none&amp;text=Rsync%20Over%20SSH%20Using%20Alternate%20Port%20and%20Private%20Key" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><!--<![endif]--><a class="a2a_button_google_bookmarks" href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;linkname=Rsync%20Over%20SSH%20Using%20Alternate%20Port%20and%20Private%20Key" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://blog.bobpeers.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a><a class="a2a_button_evernote" href="http://www.addtoany.com/add_to/evernote?linkurl=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;linkname=Rsync%20Over%20SSH%20Using%20Alternate%20Port%20and%20Private%20Key" title="Evernote" rel="nofollow" target="_blank"><img src="http://blog.bobpeers.com/wp-content/plugins/add-to-any/icons/evernote.png" width="16" height="16" alt="Evernote"/></a><a class="a2a_button_google_gmail" href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;linkname=Rsync%20Over%20SSH%20Using%20Alternate%20Port%20and%20Private%20Key" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://blog.bobpeers.com/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a><a class="a2a_button_hotmail" href="http://www.addtoany.com/add_to/hotmail?linkurl=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;linkname=Rsync%20Over%20SSH%20Using%20Alternate%20Port%20and%20Private%20Key" title="Hotmail" rel="nofollow" target="_blank"><img src="http://blog.bobpeers.com/wp-content/plugins/add-to-any/icons/live.png" width="16" height="16" alt="Hotmail"/></a><a class="a2a_button_wordpress" href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;linkname=Rsync%20Over%20SSH%20Using%20Alternate%20Port%20and%20Private%20Key" title="WordPress" rel="nofollow" target="_blank"><img src="http://blog.bobpeers.com/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a><a class="a2a_button_linkedin" href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;linkname=Rsync%20Over%20SSH%20Using%20Alternate%20Port%20and%20Private%20Key" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://blog.bobpeers.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;linkname=Rsync%20Over%20SSH%20Using%20Alternate%20Port%20and%20Private%20Key" title="Facebook" rel="nofollow" target="_blank"><img src="http://blog.bobpeers.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_delicious" href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;linkname=Rsync%20Over%20SSH%20Using%20Alternate%20Port%20and%20Private%20Key" title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.bobpeers.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.bobpeers.com%2F2008%2F06%2F01%2Frsync-over-ssh-using-alternate-port-and-private-key%2F&amp;title=Rsync%20Over%20SSH%20Using%20Alternate%20Port%20and%20Private%20Key" id="wpa2a_2"><img src="http://blog.bobpeers.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.bobpeers.com/2008/06/01/rsync-over-ssh-using-alternate-port-and-private-key/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

