<?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>Crafting software&#187; sshfs</title>
	<atom:link href="http://davidlaing.com/tag/sshfs/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidlaing.com</link>
	<description>David Laing&#039;s thoughts on software development</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:02:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Automount remote filesystem over SSH</title>
		<link>http://davidlaing.com/2008/12/27/automount-remote-filesystem-over-ssh/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=automount-remote-filesystem-over-ssh</link>
		<comments>http://davidlaing.com/2008/12/27/automount-remote-filesystem-over-ssh/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 23:08:31 +0000</pubDate>
		<dc:creator>mrdavidlaing</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[autofs]]></category>
		<category><![CDATA[sshfs]]></category>

		<guid isPermaLink="false">http://davidlaing.com/?p=132</guid>
		<description><![CDATA[Previously I posted on how I backup my server&#8217;s data to rsync.net&#8217;s remote storage. A convienient way to access that remote storage is to configure rsync over sshfs: sudo aptitude install sshfs mkdir /mnt/sshfs mkdir /mnt/sshfs/rsync.net sshfs **username**@ch-s011.rsync.net: /mnt/rsync.net Now, test that you can access /mnt/rsync.net, and copy a few files to your remote storage.  if [...]]]></description>
			<content:encoded><![CDATA[<p>Previously I posted on how I backup my server&#8217;s data to rsync.net&#8217;s remote storage.</p>
<p>A convienient way to access that remote storage is to configure rsync over sshfs:</p>
<pre>sudo aptitude install sshfs
mkdir /mnt/sshfs
mkdir /mnt/sshfs/rsync.net
sshfs **username**@ch-s011.rsync.net: /mnt/rsync.net</pre>
<div>Now, test that you can access /mnt/rsync.net, and copy a few files to your remote storage.  if all works well, the next step is to <a href="http://www.tjansson.dk/?p=84">have sshfs automatically connect whenever we try to access the directory</a></div>
<p>First, unmount</p>
<pre>fusermount -u /mnt/rsync.net</pre>
<p>Then, install autofs, and edit the config file</p>
<pre>sudo aptitude install autofs
sudo vi /etc/auto.master</pre>
<p>Add the following line </p>
<pre>/mnt/sshfs /etc/auto.sshfs --timeout=30,--ghost</pre>
<p>Then,  </p>
<pre>sudo vi /etc/auto.sshfs</pre>
<p>Add</p>
<pre>rsync.net -fstype=fuse,rw,nodev,nonempty,noatime,allow_other,max_read=65536 :sshfs#**username**@ch-s011.rsync.net:</pre>
<p> </p>
<p>And finally restart autofs </p>
<pre>sudo /etc/init.d/autofs restart</pre>
<p> </p>
<p>Now, when you cd /mnt/sshfs/rsync.net, after a short delay you will automatically be connected to the remote filesystem over SSH.  After 30 seconds of inactivity, the connection will be closed.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidlaing.com/2008/12/27/automount-remote-filesystem-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

