1.问题
用公司的网络git clone git@xxx.xxx.xxx/xxx.git可以的,但是电脑换成别的网络后git clone git@xxx.xxx.xxx/xxx.git 会出现
ssh: connect to host gitlab.neolix.cn port 22: Connection refused
fatal: Could not read from remote repository.
2.分析
出现这个问题在网上查找啦半个小时,耽误大量时间,后来把ssh 网址换成http 的
git clone http://gitlab.xxx/xxx/xxx.git后就可以啦,只不过还的输入你的gitlab用户名和密码才能下载
本文介绍了在使用Git通过SSH协议克隆仓库时遇到连接被拒绝的问题,并分享了将SSH协议更改为HTTP协议来解决问题的方法。

2426

被折叠的 条评论
为什么被折叠?



