当我运行vagrant rsync时,提示让我问'输入密钥的密码'然后是用户的流浪汉密码。 所有使用相同流浪者配置的同事都不会在vagrant rsyn命令之后插入任何密码。
看起来它无法创建/home/Administrator/.ssh文件夹,但我以普通用户身份运行该命令。
vagrant ssh-config的输出是
Host default
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile
C:/Users/USERNAME/projects/fisch/VagrantVM/.vagrant/machines/default/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL
在附件中输入流浪汉rsync --debug 谢谢大家
花了几个小时进行投资似乎问题与cygwin有关:
C:\Users\USERNAME\projects\fisch\VagrantVM>ssh -p2222 vagrant@localhost Could not create directory '/home/Administrator/.ssh'. The authenticity of host 'localhost (127.0.0.1)' can't be established. RSA key fingerprint is dd:8f:cf:c0:7a:b9:6b:b5:2e:78:70:4b:8f:e3:bf:47. Are you sure you want to continue connecting (yes/no)? yes Failed to add the host to the list of known hosts (/home/Administrator/.ssh/known_hosts).
此错误与错误路径有关,我期待 /home/USERNAME/.ssh