我正在尝试从本地计算机到远程计算机设置 SSHFS 共享,但不起作用。我收到错误 OSXFUSE 文件系统不可用(见下文)。如何修复此问题?
仅供参考,我的本地机器是运行 OSX 10.9.3 的 MacBook Pro 笔记本电脑。远程机器实际上是在同一硬件上运行 CentOS 的 VirtualBox。
% brew install sshfs # <---- SSHFS is installed
Warning: sshfs-2.5.0 already installed
% brew install osxfuse # <---- OSX Fuse is installed
Warning: osxfuse-2.6.4 already installed
% ssh [email protected] # <---- See, SSH works!!
Last login: Wed Jun 18 18:36:11 2014 from XXX.XXX.XXX.XXX
[[email protected] ~]% exit
% sudo mkdir /mnt
% sudo mkdir /mnt/Share
% sudo sshfs -o IdentityFile=~/.ssh/id_rsa.pub [email protected]:/ /mnt/Share
the OSXFUSE file system is not available (-1)
the OSXFUSE file system is not available (1)
我尝试过描述的解决方案这里.但它对我不起作用:
% sudo kextunload -b com.github.osxfuse.filesystems.osxfusefs
(kernel) Kext com.github.osxfuse.filesystems.osxfusefs not found for unload request.
Failed to unload com.github.osxfuse.filesystems.osxfusefs - (libkern/kext) not found.
答案1
我遇到了和你同样的错误:
% sudo kextunload -b com.github.osxfuse.filesystems.osxfusefs
(kernel) Kext com.github.osxfuse.filesystems.osxfusefs not found for unload request.
Failed to unload com.github.osxfuse.filesystems.osxfusefs - (libkern/kext) not found.
但随后我只是按照该链接中的其余说明进行操作:
# Use new kernel extension:
sudo /bin/cp -RfX \
/usr/local/Cellar/osxfuse/2.6.2/Library/Filesystems/osxfusefs.fs /Library/Filesystems
sudo chmod +s \
/Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs
现在它运行良好。希望这能有所帮助。