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