在今天更新Macports之后
$ sudo port upgrade
git不能推
$ git push
OpenSSL version mismatch. Built against 1000005f, you have 1000100f
fatal: The remote end hung up unexpectedly
$ ssh -version
OpenSSH_5.9p1, OpenSSL 1.0.1 14 Mar 2012
Bad escape character 'rsion'.
$ uname -a
Darwin foobar.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
还有谁?如何快速解决? (这阻止了我从事有用的工作。)
编辑:回滚
git-core
和open-ssl
端口后出现的错误:$ port installed git-core openssh
Warning: port definitions are more than two weeks old, consider using selfupdate
The following ports are currently installed:
git-core @1.7.5.1_0+doc+python27
git-core @1.7.5.2_0+doc+python27
git-core @1.7.7_0+doc+pcre+python27
git-core @1.7.7.4_0+doc+pcre+python27
git-core @1.7.9.2_1+credential_osxkeychain+doc+pcre+python27 (active)
git-core @1.7.9.4_0+credential_osxkeychain+doc+pcre+python27
openssh @5.8p1_0 (active)
openssh @5.9p1_0
$ git push
OpenSSL version mismatch. Built against 1000004f, you have 1000100f
fatal: The remote end hung up unexpectedly
最佳答案
sudo port deactivate
,openssl
和openssh
端口,以及git-core
旧版本。 (sudo port activate
查看这些旧版本。)尽管我认为这一问题已经得到解决。您是首先使用port installed openssl git-core openssh
吗?
关于git - Git的SSH兼容性问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10326026/