8
我使用的是Windows 7和每次Cygwin的混帐我做到这一点,需要通过SSH github上通信的任何操作,我得到以下信息:的Git在Cygwin:未能将主机添加到已知主机列表中
Could not create directory '/home/ltb/.ssh'.
The authenticity of host 'github.com (192.30.252.129)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)?
到目前为止好,我明白上面发生了什么。但是一旦输入yes,SSH应该能够将github密钥插入known_hosts
文件并移动。相反,我每次都会收到以下错误消息:
Failed to add the host to the list of known hosts (/home/ltb/.ssh/known_hosts).
我在做什么错?
对于较新的Cygwin的,你需要编辑'/等/ nsswitch.conf'代替,并添加'db_home:windows'然后重新启动Cygwin。请参阅[此超级用户答案](https://superuser.com/a/1026123/333230)。 – 2016-06-07 14:10:36