mac 升级10.12后致使git pull失败

Mac 升级后git pull报错,以下:git

 

Unable to negotiate with 10.0.0.21 port 29418: no matching cipher found. Their offer: aes128-cbc,3des-cbc,blowfish-cbcmacos

fatal: Could not read from remote repository.vim

 

Please make sure you have the correct access rights安全

and the repository exists.ssh

 

解决方法:加密

Sudo vim /etc/ssh/ssh_config 最后添加一行:spa

Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc.net

 

ps:macos系统安全升级,ssh默认再也不采用原有的部分加密方式,须要用户手动添加。3d

 ssh_config 是针对ssh客户端配置文件ip

sshd_config 是针对ssh服务的配置文件,Ciphers表明客户端登陆支持的加密方式

 

http://www.itechlounge.net/2018/01/macos-unable-to-negotiate-with-0-0-0-0-port-22-no-matching-cipher-found/

相关文章
相关标签/搜索