无法使用sshfs将网络驱动器装载到vbox

无法使用sshfs将网络驱动器装载到vbox,ssh,vagrant,sshfs,Ssh,Vagrant,Sshfs,试图使用sshfs将网络驱动器映射到vagrant启动的vbox。我编写了以下命令,但失败了。知道为什么吗?在vbox中运行的操作系统是FC20。我能很好地适应它 $ sshfs -p 2222 -o Compression=yes -o DSAAuthentication=yes -o LogLevel=FATAL -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -i /User

试图使用sshfs将网络驱动器映射到vagrant启动的vbox。我编写了以下命令,但失败了。知道为什么吗?在vbox中运行的操作系统是FC20。我能很好地适应它

$ 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'

提前谢谢

找到了临时解决方法:

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

sshfs -p 2222 vagrant@localhost:  <dir_to_mount>
sshfs -p 2222 vagrant@localhost: /home/tester/fs