gpt4 book ai didi

macos - 为什么我不能设置 SSHFS 共享? “OSXFUSE file system is not available” 错误

转载 作者:太空宇宙 更新时间:2023-11-03 17:12:21 26 4
gpt4 key购买 nike

我正在尝试设置从我的本地计算机到远程计算机的 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 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)

我尝试了描述的解决方案 here .但它对我不起作用:

% 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 并完全按照说明操作,我相信它会起作用。

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

这是 brew info osxfuse 告诉我的:

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

关于macos - 为什么我不能设置 SSHFS 共享? “OSXFUSE file system is not available” 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24309293/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com