git推送bitbucket时SSL端口22的连接超时
当我在git推送bitbucket时SSL端口22的连接超时,git,ssl,timeout,bitbucket,Git,Ssl,Timeout,Bitbucket,当我在bitbucket上推送到远程回购时,会出现以下错误: ssh: connect to host bitbucket.org port 22: Connection timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 我找到了一个解决方案,上面提到了在提交时禁用SSL验证
bitbucket
上推送到远程回购时,会出现以下错误:
ssh: connect to host bitbucket.org port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我找到了一个解决方案,上面提到了在提交时禁用SSL验证。所以我用它来推:
git -c http.sslVerify=false push origin master
但它又给了我同样的错误。我几乎可以肯定它与https
协议有关。几天前还不错,但现在我或其他来自不同城市的团队成员都无法推动任何事情
完全禁用SSH并使用https进行推送的解决方案是什么。有什么帮助吗?http.sslverify设置与
ssh
无关http
和ssh
是两种不同的协议。看起来好像有什么东西阻止您连接到bitbucket.org
上的ssh
端口。您可以尝试将远程url改为使用https
。端口22传统上用于SSH,而不是用于任何使用SSL/TLS(非https)的内容。看起来您已经将存储库配置为使用SSH,而不是HTTPS(因此http.sslVerify=false
将无效)。您得到的是超时(您可能有防火墙或其他东西,但这不是SSL验证问题)。