我不知道发生了什么变化,但是当我试图在GitHub上推送到我的遥控器时,我感到非常惊讶,它转而使用了一个完全未知的IP.
[slavik@localhost guardonce]$ git push origin master
Warning: Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hosts.
Connection closed by 192.30.252.128
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Run Code Online (Sandbox Code Playgroud)
其他测试表明我的本地机器的配置很好.例如:
[slavik@localhost guardonce]$ ssh -T git@github.com
Hi slavik81! You've successfully authenticated, but GitHub does not provide shell access.
Run Code Online (Sandbox Code Playgroud)
和
[slavik@localhost guardonce]$ git remote -v
origin git@github.com:slavik81/guardonce.git (fetch)
origin git@github.com:slavik81/guardonce.git (push)
Run Code Online (Sandbox Code Playgroud)
看着我的known_hosts,我期待着和他说话github.com,204.232.175.90.那么,为什么不呢?
Von*_*onC 15
现在(2013年8月25日)在" IP地址变更 "中解释了变化:
api.github.com
gist.github.com
ssh.github.com
Run Code Online (Sandbox Code Playgroud)
我们的下一步是开始在GitHub主站点上使用这些IP地址,因此我们提醒所有人注意这一变化.
有一些问题可能会影响某些人:
如果您具有允许从网络访问GitHub的明确防火墙规则,则您需要确保包含本文中列出的所有IP范围.
如果您的
/etc/hosts文件中有一个指向github.com特定IP地址的条目,则应将其删除,而是依靠DNS为您提供最准确的地址集.如果您通过SSH协议访问存储库,则每次客户端连接到新IP地址时都会收到警告消息
github.com.
只要警告中的IP地址在前面提到的帮助页面中的IP地址范围内,您就不应该担心.
具体来说,这次添加的新地址范围为192.30.252.0到192.30.255.255.
警告消息如下所示:
Warning: Permanently added the RSA host key for IP address '$IP' to the list of known hosts.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11027 次 |
| 最近记录: |