为什么我不能设置 SSHFS 共享?“OSXFUSE 文件系统不可用"错误 [英] Why can't I setup an SSHFS share? “OSXFUSE file system is not available” error

查看:10
本文介绍了为什么我不能设置 SSHFS 共享?“OSXFUSE 文件系统不可用"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置从本地计算机到远程计算机的 SSHFS 共享,但它无法正常工作.我收到错误 OSXFUSE 文件系统不可用(见下文).如何解决这个问题??

I'm trying to setup an SSHFS share from my local machine to a remote machine, but it is not working. I'm getting the error OSXFUSE file system is not available (see below). How to fix this??

仅供参考,我的本地机器是运行 OSX 10.9.3 的 MacBook Pro 笔记本电脑.远程机器实际上是运行 CentOS 的同一硬件上的 VirtualBox.

FYI, my local machine is a MacBook Pro laptop running OSX 10.9.3. The remote machine is actually a VirtualBox on the same hardware running CentOS.

% 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 remote_user@XXX.XXX.XXX.XXX                   # <---- See, SSH works!!
Last login: Wed Jun 18 18:36:11 2014 from XXX.XXX.XXX.XXX
[remote_user@XXX.XXX.XXX.XXX ~]% exit

% sudo mkdir /mnt
% sudo mkdir /mnt/Share    
% sudo sshfs -o IdentityFile=~/.ssh/id_rsa.pub remote_user@XXX.XXX.XXX.XXX:/ /mnt/Share
the OSXFUSE file system is not available (-1)
the OSXFUSE file system is not available (1)

我尝试了此处.但这对我不起作用:

I tried solution described here. But it didn't work for me:

% 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.

推荐答案

如果你运行 brew info osxfuse 并按照说明进行操作,我相信它会起作用.

If you run brew info osxfuse and follow the instructions to the letter, I believe it would work.

根据您的描述,您只是尝试卸载(可能的)以前的内核扩展,但没有完成实际安装新扩展的最后一个重要步骤.

From what You described, you just tried unloading the (possible) previous kernel extension, but did not complete the last important step to actually install the new extension.

这是 brew info osxfuse 告诉我的:

This is what brew info osxfuse tells me:

If upgrading from a previous version of osxfuse, the previous kernel extension
will need to be unloaded before installing the new version. First, check that
no FUSE-based file systems are running:

  mount -t osxfusefs

Unmount all FUSE file systems and then unload the kernel extension:

  sudo kextunload -b com.github.osxfuse.filesystems.osxfusefs

The new osxfuse file system bundle needs to be installed by the root user:

  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 共享?“OSXFUSE 文件系统不可用"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆