我应该在我的问题上更清楚一点,我没有使用GitHub - 所讨论的Git服务器是我自己的笔记本电脑,而不是GitHub,所以它是服务器IP在调制解调器/路由器。
我做了什么来解决这个问题是每个IP,puttygen一个密钥对。然后我将公钥添加到authorized_keys文件中,为我的其他机器保留了私钥的副本,并为每个IP地址添加了一个putty以将密钥添加到putty的缓存中。现在我只是为调制解调器分配的每个IP执行此操作。痛苦,但只有一次,而不是一直改变ips。
虽然我必须将.git目录中配置文件的远程部分更新为IP地址。我想我可以根据IP地址为远程部分中的每个IP地址添加一个单独的部分,并加上相应的分支部分。
这是我得到的错误:
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:...
Connection abandoned.
fatal: The remote end hung up unexpectedly
我的设置是在Windows 7上,由Cygwin的(仅SSH),msysgit和腻子套件。
我不认为你的ip地址被用于ssh-key生成。 – akosch 2010-04-14 15:13:53
至少有一个解决方法可用于此错误:http://stackoverflow.com/questions/4931384/git-server-host-key-not-cached – vyda 2013-07-02 14:16:54