公司的代码托管在 Bitbucket 上,大概从过了年之后,使用 git 同步 Bitbucket 上的代码就断断续续的,有时候好使,有时候不好使。
$ git pull Connection reset by xx.xx.xx.xx port 22 fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
有没有使用 Bitbucket 的老哥,你们使用正常吗?
![]() | 1 dif 2024-03-06 14:46:30 +08:00 ![]() 如果你们公司在国内,为啥要选 bitbucket 。既然选了,那就备好梯子~~~ 我个人只用来备份得,目前没问题,你这个问题可能是最近开会得原因吧。 |
![]() | 2 sayitagain 2024-03-06 14:58:23 +08:00 我的眼睛居然把 Bitbucket 自动解析成了 Bitwarden... |
![]() | 3 tedzhou1221 2024-03-06 15:05:14 +08:00 @sayitagain 我也是。。。。 |
4 edwardhodges 2024-03-06 15:11:36 +08:00 bitbucket 、GitHub 都要梯子好才能正常访问的。公司代码不是一般都在国内的服务器上面吗? |
![]() | 5 zyh94946 2024-03-06 15:14:14 +08:00 这是什么正经代码还放到 Bitbucket 去 |
6 ashrkq 2024-03-06 15:42:06 +08:00 ![]() 可能网络对 22 端口有什么限制吧,你换成 https 的试下。 |
![]() | 7 dcdlove 2024-03-06 16:05:18 +08:00 @sayitagain 我也是哈哈 |
![]() | 8 liuguangxuan OP @dif #1 多谢老哥,可能真的是开会的原因,公司是联通的网络,切换到移动的网络就好了。 不过有一事不明白,想请教老哥:我按你说的,使用梯子,已经在~/.ssh/config 文件中配置了 git 的代理,走梯子的流量,但是 git 使用仍然报上述错误,这种情况下防火墙是如何检测出来的?还是我设置的不正确。 |
![]() | 9 dif 2024-03-07 14:35:01 +08:00 @liuguangxuan 这就不清楚了,我用的 clash ```bash #使用 socks5 代理(推荐) git config --global http.https://github.com.proxy socks5://127.0.0.1:7890 ``` |
![]() | 10 liuguangxuan OP @dif #9 好的,多谢。 |