【问题标题】:failed to mount a network drive to vbox using sshfs无法使用 sshfs 将网络驱动器安装到 vbox
【发布时间】:2014-10-25 16:24:40
【问题描述】:

尝试使用 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'

提前致谢。

【问题讨论】:

    标签: ssh vagrant sshfs


    【解决方案1】:

    找到临时解决方法:

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

    sshfs -p 2222 vagrant@localhost:  <dir_to_mount>
    

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-06-23
      • 2017-01-06
      • 2019-07-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-21
      相关资源
      最近更新 更多