5

为什么我不能从我的 mac 使用 sshfs 连接到我的 BeagleBone?我可以 ssh 到这个 IP 地址就好了。我需要以某种方式创建一个特殊的挂载点吗?套接字未连接是什么意思?

sudo sshfs root@192.168.7.1: /Volumes/
remote host has disconnected
mount_osxfusefs: failed to mount /Volumes@/dev/osxfuse0: Socket is not connected

仅供参考,我使用安装了 sshfsbrew cask sshfs

4

1 回答 1

4

这是我过去的做法。(我不确定它是否与您使用的 sshfs 实现相同)

我有一个私钥(我将其称为 mykey.pem)确保其权限为 600

我还有一个要挂载的文件夹(位于 /usr/remote)

然后我运行这个:

sshfs -o IdentityFile=/path/to/key/mykey.pem remote_user@ip_address:/remote/folder -o allow_other /usr/remote

我希望这对您的情况有所帮助。

于 2014-10-25T06:54:13.017 回答