赞
踩
ssh: connect to host github.com port 22: Connection timed outfatal: Could not read from remote repository.
Please make sure you have the correct access rightsand the repository exists.
当我在上传本地的笔记到Github仓库时,出现连接超时:
原因描述:访问Github连接超时。
步骤一:找到hosts文件
步骤二:添加一条Github的域名与ip地址的映射,当我们去访问Github的时候就会优先去访问这个IP地址。
140.82.112.3 github.com
添加到末尾即可:
接下来我们再次尝试提交代码到Github,提交成功!
[1]. ssh: connect to host github.com port 22: Connection timed out【已解决】ssh -T git@github.com(报22端口错误)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。