Vagrant rsync错误:错误:无法创建目录'/home/Eric/.ssh' [英] Vagrant rsync error: Error: Could not create directory '/home/Eric/.ssh'

查看:2170
本文介绍了Vagrant rsync错误:错误:无法创建目录'/home/Eric/.ssh'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装程序Vagrant 1.8.1在Windows 10以及cygwin和cwRsync。现在我得到这个错误时,vagrant up:

I installer Vagrant 1.8.1 on Windows 10 and as well cygwin and cwRsync. Now i get this error when do vagrant up:

There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.

Host path: /cygdrive/m/development/Projects/www.webapp.local/
Guest path: /vagrant
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/Eric/AppData/Local/Temp/ssh.202 -o ControlPersist=10m -o StrictHostKeyChecking=no -o IdentitiesOnly=true -o UserKnownHostsFile=/dev/null -i 'M:/development/Projects/www.webapp.local/.vagrant/machines/default/virtualbox/private_key' --exclude .vagrant/ /cygdrive/m/development/Projects/www.webapp.local/ vagrant@127.0.0.1:/vagrant
Error: Could not create directory '/home/Eric/.ssh'.
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: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2]

我已经尝试过这篇文章中的建议: http://ekawas.blogspot.co.uk/2007/03/solving-pesky-ssh-issues -in-cygwin.html

I already tried the suggestions in this post: http://ekawas.blogspot.co.uk/2007/03/solving-pesky-ssh-issues-in-cygwin.html

但没有成功。

推荐答案

这似乎是一个已知问题,Vagrant> = 1.8.0和Windows主机。

This seems to be a known issue with Vagrant >=1.8.0 and Windows hosts.

对于仍在努力的用户,请删除$ VAGRANT_HOME\embedded\gems\gems\vagrant-1.8.0\plugins中的以下代码\synced_folders\rsync\helper.rb(第77至79行):

For the ones still struggling, remove the following code in $VAGRANT_HOME\embedded\gems\gems\vagrant-1.8.0\plugins\synced_folders\rsync\helper.rb (lines 77 to 79):

"-o ControlMaster=auto " +
"-o ControlPath=#{controlpath} " +
"-o ControlPersist=10m " +


b $ b

来源

这篇关于Vagrant rsync错误:错误:无法创建目录'/home/Eric/.ssh'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆