使用git fetch命令拉代码时报ssh: connect to host gitlab.focusmedia.tech port 22: Operation timed out fatal: Could not read from remote repository.

 

使用git fetch命令拉代码时报ssh: connect to host gitlab.focusmedia.tech port 22: Operation timed out fatal: Could not read from remote repository.百度了一下问题说原因可能是由于电脑的防火墙或者其他网络原因导致ssh连接方式 端口22被封锁。

然后更换了获取代码方式为https,就好了

 

 

posted @ 2021-07-09 09:43  博琴雅心  阅读(484)  评论(0编辑  收藏  举报