Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
git推送bitbucket时SSL端口22的连接超时_Git_Ssl_Timeout_Bitbucket - Fatal编程技术网

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验证问题)。