Mac git pull失败,最新操作系统导致 SSH issues with Mac OS X High Sierra

Posted 一天一点到

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mac git pull失败,最新操作系统导致 SSH issues with Mac OS X High Sierra相关的知识,希望对你有一定的参考价值。

Mac 升级到最新操作系统ssh加密方式和gitlub不一样,导致不能git pull  如:mac是md5加密方式,gitlut是aes-256-cbc加密方式 解决方法如下

 

A coworker of mine was reporting an issue with SSH after updating to Mac OS X High Sierra.

$ ssh server-alias-hostname
Unable to negotiate with 192.168.1.5 port 22: no matching cipher found. Their offer: blowfish-cbc,aes256-cbc

 

打开对应路径,加入如下配置即可

It turns out that the system is configured to use certain ciphers within/etc/ssh/ssh_config.

You can adjust your local configuration within ~/.ssh/configto make sure that the ciphers supported by your local client match one of the ones offered by the remote server.

# ~/.ssh/config
Host *
  SendEnv LANG LC_*
  Ciphers +aes256-cbc

 

以上是关于Mac git pull失败,最新操作系统导致 SSH issues with Mac OS X High Sierra的主要内容,如果未能解决你的问题,请参考以下文章

为啥我用git gui pull总是失败

无法“git pull” - 主机密钥验证失败

git pull 失败并显示“应用程序没有调用 WSAStartup,或者 WSAStartup 失败”

git pull 会导致本地为提交代码被覆盖吗?为啥我从来没出现过,啥情况下才会被覆盖呢?

git需要设置再次弹出输入账号密码

为啥我用git gui pull总是失败