【GIT】远程GitHub时不成功,报错信息:ssh_dispatch_run_fatal: Connection to 13.229.188.59 port 22: Software caused

问题描述:

 Gitbash:ssh -T [email protected]检查连接情况时,出现下面报错:

ssh_dispatch_run_fatal: Connection to 13.229.188.59 port 22: Software caused connection abort

原因:dns解析问题

打开cmd输入ping命令查看github.com是否可以连接

【GIT】远程GitHub时不成功,报错信息:ssh_dispatch_run_fatal: Connection to 13.229.188.59 port 22: Software caused_第1张图片

解决方案:配置本地hosts文件

打开文件地址:C:\Windows\System32\drivers\etc\hosts

在此文件末尾加上以下内容:

192.30.255.112  github.com git 
185.31.16.184 github.global.ssl.fastly.net

Gitbash再次ssh -T [email protected],成功

【GIT】远程GitHub时不成功,报错信息:ssh_dispatch_run_fatal: Connection to 13.229.188.59 port 22: Software caused_第2张图片

 

你可能感兴趣的:(【GIT】远程GitHub时不成功,报错信息:ssh_dispatch_run_fatal: Connection to 13.229.188.59 port 22: Software caused)