blob: 8b736c82d18f7f870ed79d419d3ee7c22fe975a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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 />
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 & fix ownership<br />
mkdir /mnt/snow-www && 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>
|