-1

sshfs を使用して、vagrant によって開始された vbox にネットワーク ドライブをマップしようとしました。次のコマンドを作成しましたが、失敗しました。理由はありますか?vbox で動作する OS は 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 に答える