2

我的 Vagrant 有问题。当它想将主机文件夹与 VM 文件夹同步时,我收到以下错误消息:

==> default: Rsyncing folder: /c/Users/loow/Documents/internavenue-vagrant/ => /home/vagrant/sync

尝试 rsync 同步文件夹时出错。请检查下面的错误消息以获取更多信息。

Host path: /c/Users/loow/Documents/internavenue-vagrant/
Guest path: /home/vagrant/sync
Command: rsync --verbose --archive --delete -z --copy-links --chmod=ugo=rwX --no-perms --no-owner --no-group --rsync-path sudo rsync -e ssh -p 2222 -o ControlMaster=auto -o ControlPath=C:/Users/loow/AppData/Local/Temp/ssh.126 -o ControlPersist=10m -o StrictHostKeyChecking=no -o IdentitiesOnly=true -o UserKnownHostsFile=/dev/null -i 'C:/Users/loow/Documents/internavenue-vagrant/.vagrant/machines/default/virtualbox/private_key' --exclude .vagrant/ /c/Users/loow/Documents/internavenue-vagrant/ vagrant@127.0.0.1:/home/vagrant/sync
Error: Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.

mm_receive_fd: no message header

process_mux_new_session: failed to receive fd 0 from slave

mux_client_request_session: read from master failed: Connection reset by peer

Failed to connect to new control master

rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: err

我在 Windows 7 下,我在更改文件夹名称广告后从那里C:\下载 rsync,然后在 cmd 中将它添加到设置的路径中,PATH=%PATH%;C:\rsync\bin但我仍然收到此消息。我也仍然安装了 Git ssh,但我认为这不是问题。我能为这项工作做些什么,我真的必须解决它,因为我无法与 VM 同步文件夹。

4

0 回答 0