LoginSignup
7
10

More than 5 years have passed since last update.

macでsshfsを使うのにハマった点

Posted at

失敗例

インストール
brew install sshfs osxfuse
sshfsをおもむろに使う。
$ sshfs 192.168.11.2:/mnt $HOME/mnt
/Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext failed to load - (libkern/kext) not loadable (reason unspecified); check the system/kernel logs for errors or try kextutil(8).
the OSXFUSE file system is not available (71)
  • osxfusefs.kext が読み込めないとのエラー。
手動でkextを読み込んでみる
$ sudo kextutil /Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext
Password:
Diagnostics for /Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext:
Code Signing Failure: not code signed
ERROR: invalid signature for com.github.osxfuse.filesystems.osxfusefs, will not load
  • kextが署名されていないので読み込みませんでしたとのこと。

成功例

brew install sshfs
brew uninstall osxfuse

FUSE for OS X - Browse Files at SourceForge.netからdmgをダウンロードしインストール

もしかしたらこれしたほうがいいかも。
sudo /bin/cp -RfX /usr/local/opt/osxfuse/Library/Filesystems/osxfusefs.fs /Library/Filesystems
sudo chmod +s /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs

動作確認

成功
$ sshfs 192.168.11.2:/mnt $HOME/mnt
7
10
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
10