ssh: connect to host gitlab.xxx port 22: Connection timed outfatal: Could not read from re

场景:准备提交代码的时候git就拉不下来代码了。。。。

ssh: connect to host gitlab.xxx port 22: Connection timed outfatal: Could not read from re_第1张图片

 解决办法:

1、去gitlab上选择http形式的地址,然后复制以下内容

ssh: connect to host gitlab.xxx port 22: Connection timed outfatal: Could not read from re_第2张图片

2、找到项目.git文件夹下的config文件

ssh: connect to host gitlab.xxx port 22: Connection timed outfatal: Could not read from re_第3张图片

 3、将config文件下的url地址由ssh地址改为刚才复制的http的地址

ssh: connect to host gitlab.xxx port 22: Connection timed outfatal: Could not read from re_第4张图片

 至此,就可以正常拉取代码了

ssh: connect to host gitlab.xxx port 22: Connection timed outfatal: Could not read from re_第5张图片

 

你可能感兴趣的:(ssh)