git - Git的SSH兼容性问题

标签 git ssh version incompatibility

在今天更新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-coreopen-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 deactivateopensslopenssh端口,以及git-core旧版本。 (sudo port activate查看这些旧版本。)尽管我认为这一问题已经得到解决。您是首先使用port installed openssl git-core openssh吗?

关于git - Git的SSH兼容性问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10326026/

相关文章:

git - 通过 url 在 vi​​sual svn 中突出显示/导航行号

php - 即使在关闭 SSH 终端后,如何保持 websocket 服务器运行?

linux - 通过 ssh 执行脚本时无法使用命令 `date` 或 `find`

android - 仅当版本为 11+ 时如何使用函数

ruby-on-rails - gem 'mongoid' , '~> 4' 是否等于 gem 'mongoid' , '>= 4' ?

git - 我如何解决一条 GitHub 消息,指出我当前分支的尖端落后于它的远程分支?

git - Jenkins : stderr: Permission denied (publickey). fatal: 远端意外挂断

git - 如何从*本地裸*存储库中进行 git 克隆

node.js - 使用 Digital Ocean 和 FlightPlan.js 时 Node 应用程序出错 - 所有配置的身份验证方法均失败

version - “RTM”版本是什么意思?