blog.tkeo.info

macでsshfsを使う

なんかぐぐるとMacFUSEを入れる方法ばっかり出てくるけど、brewで入れるのであれば不要。

1
2
3
4
5
6
7
$ brew install sshfs
(略)
==> Caveats
Make sure to follow the directions given by `brew info fuse4x-kext`
before trying to use a FUSE-based filesystem.
==> Summary
/usr/local/Cellar/sshfs/2.3.0: 7 files, 120K, built in 12 seconds

installすると上のように言われるので指示に従う。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$ brew info fuse4x-kext
fuse4x-kext 0.8.14
http://fuse4x.org/
/usr/local/Cellar/fuse4x-kext/0.8.14 (7 files, 312K)

In order for FUSE-based filesystems to work, the fuse4x kernel extension
must be installed by the root user:

  sudo cp -rfX /usr/local/Cellar/fuse4x-kext/0.8.14/Library/Extensions/fuse4x.kext /System/Library/Extensions
  sudo chmod +s /System/Library/Extensions/fuse4x.kext/Support/load_fuse4x

If upgrading from a previous version of Fuse4x, the old kernel extension
will need to be unloaded before performing the steps listed above. First,
check that no FUSE-based filesystems are running:

  mount | grep fuse4x

Unmount all FUSE filesystems and then unload the kernel extension:

  sudo kextunload -b org.fuse4x.kext.fuse4x


http://github.com/mxcl/homebrew/commits/master/Library/Formula/fuse4x-kext.rb

上のsudoコマンド2つを叩くだけで使えるようになる(下の方はアップグレードのときに実行するらしい)