Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssh vagrant rsync:输入密钥的密码短语_Ssh_Cygwin_Vagrant_Rsync - Fatal编程技术网

Ssh vagrant rsync:输入密钥的密码短语

Ssh vagrant rsync:输入密钥的密码短语,ssh,cygwin,vagrant,rsync,Ssh,Cygwin,Vagrant,Rsync,当我运行vagrant rsync时,提示会让我不断询问“输入密钥密码”,然后询问用户的vagrant密码。 我所有使用相同vagrant配置的同事都不会在vagrant rsyn命令后插入任何密码 看起来它无法创建/home/Administrator/.ssh文件夹,但我以普通用户的身份运行该命令 vagrant ssh config的输出是 Host default HostName 127.0.0.1 User vagrant Port 2222 UserKnownHos

当我运行vagrant rsync时,提示会让我不断询问“输入密钥密码”,然后询问用户的vagrant密码。 我所有使用相同vagrant配置的同事都不会在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). C:\Users\USERNAME\projects\fisch\VagrantVM>ssh-p2222vagrant@localhost 无法创建目录“/home/Administrator/.ssh”。 无法建立主机“localhost(127.0.0.1)”的真实性。 RSA密钥指纹是dd:8f:cf:c0:7a:b9:6b:b5:2e:78:70:4b:8f:e3:bf:47。 是否确实要继续连接(是/否)?对 无法将主机添加到已知主机列表(/home/Administrator/.ssh/known_hosts)。
同样,这个错误与错误路径有关,我希望/home/USERNAME/.ssh

您能输出命令
vagrant ssh config
的结果吗?当然,现在有问题了,它可能是重复的。看一看相关问题的第二个答案;这是相同的情况(Windows/Cygwin)和错误消息。不,这与Cygwin选择的错误路径有关