" SSL连接错误":无法推送到github

时间:2015-03-17 21:38:01

标签: git ssl github

我试图在我有帐户的服务器上设置git存储库。所以我首先确保它在我的本地盒子(已经有git)上工作,一切正常。所以我编译了git然后运行。但是当我试图在服务器上运行它时,一切正常,直到:

$ git push --set-upstream origin master
fatal: unable to access 'https://github.com/Elronnd/so-many-fools.git/': SSL connect error

此服务器不经常维护,因为它主要用于电子邮件(除了我之外的所有人)。是否有可能与openSSL的版本有关?

此外:

$ GIT_CURL_VERBOSE=1 git push --set-upstream origin master
* Couldn't find host github.com in the .netrc file, using defaults
* About to connect() to github.com port 443 (#0)
*    Trying 192.30.252.128... * Connected to github.com (192.30.252.128) port 443 (#0)
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
* NSS error -12286
* Expire cleared
* Closing connection #0
fatal: unable to access 'https://github.com/Elronnd/so-many-fools.git/': SSL connect error

编辑:

使用ssh协议(而不是http(s))运行时:

$ GIT_CURL_VERBOSE=1 git push --set-upstream origin master
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

0 个答案:

没有答案