Mac git pull fails with latest OS causing SSH issues with Mac OS X High Sierra

Mac upgrade to the latest operating system ssh encryption method is different from gitlub, so git pull cannot be performed. For example: mac is md5 encryption method, gitlut is aes-256-cbc encryption method The solution is as follows

 

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

 

Open the corresponding path and add the following configuration

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

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325537403&siteId=291194637
Recommended