码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2018-05-07 11:48:18      阅读:330      评论:0      收藏:0      [点我收藏+]

标签:nbsp   host   use   mac   env   class   hostname   加密方式   tin   

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

标签:nbsp   host   use   mac   env   class   hostname   加密方式   tin   

原文地址:https://www.cnblogs.com/zhaoyingjie/p/9001568.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!