首页 > 其他 > 详细

github网络错误处理

时间:2020-07-14 14:04:10      阅读:92      评论:0      收藏:0      [点我收藏+]

github网络错误处理

[root@node10 kodoe]# git pull origin:dev
ssh: Could not resolve hostname origin: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
  1. 测试和github的连通性

    返回当前ssh-key在github上对应的用户

    ssh -T git@github.com
    Hi PoplarYang! You‘ve successfully authenticated, but GitHub does not provide shell access.
    
  2. 如果1返回的是Connection timed out

    ssh -T git@github.com
    ssh: connect to host github.com port 22: Connection timed out
    

    有可能DNS被污染,需要找到正确的解析。

    13.250.177.223  github.com
    

github网络错误处理

原文:https://www.cnblogs.com/hiyang/p/13298299.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!