aboutsummaryrefslogtreecommitdiff
path: root/content/posts/2003-11-13-sshfs-redux.html
diff options
context:
space:
mode:
Diffstat (limited to 'content/posts/2003-11-13-sshfs-redux.html')
-rw-r--r--content/posts/2003-11-13-sshfs-redux.html64
1 files changed, 64 insertions, 0 deletions
diff --git a/content/posts/2003-11-13-sshfs-redux.html b/content/posts/2003-11-13-sshfs-redux.html
new file mode 100644
index 0000000..8b736c8
--- /dev/null
+++ b/content/posts/2003-11-13-sshfs-redux.html
@@ -0,0 +1,64 @@
+---
+date: "2003-11-13T07:13:39Z"
+title: sshfs Redux
+---
+
+<p>
+A couple people have asked about <abbr title='Secure Shell Filesystem'>sshfs</abbr> (one of the filesystems included with <a href='http://lufs.sf.net/'><acronym title='Linux User-Space Filesystem'>LUFS</acronym></a>. Well, here's how I've got things set up:
+</p>
+
+<p>
+The following command installs <a href='http://lufs.sf.net/'><acronym title='Linux User-Space Filesystem'>LUFS</acronym></a> in <a href='http://www.debian.org/'>Debian</a>:
+</p>
+
+<p>
+<kbd>
+# install requisite packages<br />
+apt-get install lufs-source lufs-utils module-assistant debhelper<br />
+# compile and install kernel module<br />
+module-assistant auto-install lufs<br />
+# load module<br />
+/sbin/modprobe lufs<br />
+# set lufs mount <acronym title='Set User-ID'>SUID</acronym><br />
+chmod a+s `which lufsmnt`<br />
+</kbd>
+</p>
+
+<p>
+Here's the <code>/etc/fstab</code> entry for our sample filesystem:
+</p>
+
+<p>
+<samp>
+none /mnt/snow-www lufs fs=sshfs,rw,user,nosuid,host=www,username=pabs,noauto 0 0
+</samp>
+</p>
+
+<p>
+<abbr title='Secure Shell Filesystem'>sshfs</abbr> uses your existing <code>~/.ssh/config</code> settings. In this case, we're concerned about the <code>proxycommand</code> stuff:
+</p>
+
+<p>
+<samp>
+Host www<br />
+&nbsp;&nbsp;proxycommand ssh -A phoenix.snowman.net nc -q 10 %h ssh<br />
+</samp>
+</p>
+
+<p>
+The last thing to do is create the mount directory, and make sure the ownership is correct:
+</p>
+
+<p>
+<kbd>
+# create directory &amp; fix ownership<br />
+mkdir /mnt/snow-www &amp;&amp; chown pabs:pabs /mnt/snow-www<br />
+</kbd>
+</p>
+
+<p>
+And that should be it. Caveats: <code>lufsumount</code> seems to be a little picky, your <a href='http://lufs.sf.net/'><acronym title='Linux User-Space Filesystem'>LUFS</acronym></a> mounts won't show up in <code>df</code>, and <abbr title='Secure Shell Filesystem'>sshfs</abbr> doesn't do any client-side caching, so things are a wee bit slow.
+</p>
+
+
+