-1

尝试使用 sshfs 将网络驱动器映射到由 vagrant 启动的 vbox。我编写了以下命令,但失败了。知道为什么吗?vbox中运行的操作系统是FC20。我可以 ssh 进入它。

$ sshfs -p 2222 -o Compression=yes -o DSAAuthentication=yes -o LogLevel=FATAL -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -i /Users/user1/.vagrant.d/insecure_private_key vagrant@127.0.0.1: fs

fuse: mount point is not a directory `/Users/jqian/.vagrant.d/insecure_private_key'

提前致谢。

4

1 回答 1

-1

找到了一个临时的解决方法:

ssh 进入框中并为用户“vagrant”设置密码。

sshfs -p 2222 vagrant@localhost:  <dir_to_mount>

我在本地创建了一个名为“fs”的目录,所以我可以运行它

sshfs -p 2222 vagrant@localhost: /home/tester/fs
于 2014-10-25T22:32:36.880 回答