ssh报错

报错信息

➜  docSynopsis git:(master) git pull origin master
/etc/ssh/ssh_config: line 20: Bad configuration option: gssapikeyexchange
/etc/ssh/ssh_config: line 56: Bad configuration option: gssapitrustdns
/etc/ssh/ssh_config: line 57: Bad configuration option: gssapikeyexchange
/etc/ssh/ssh_config: terminating, 3 bad configuration options
fatal: Could not read from remote repository.

解决方案

sudo vim /etc/ssh/ssh_config

切换到报错行 直接注释

  • You are running macOS Sierra (10.14)

  • You have a pre-existing .ssh/config or /etc/ssh/ssh_config file, possibly with a GSSAPIKeyExchange no setting that was previously required for El Capitan (Mac OS 10.11)

  • macOS Sierra中的ssh程序不再支持GSSAPIKeyExchange选项

  • 删除或注释掉包含GSSAPIKeyExchange的行

重新生成ssh公钥

ssh-keygen -t rsa -C "邮件地址"

   转载规则


《ssh报错》 浅夏晴空 采用 知识共享署名 4.0 国际许可协议 进行许可。
 上一篇
hexo+github搭建免费个人网站 hexo+github搭建免费个人网站
前言GitHub page提供了免费的服务搭建 免费域名 xxx.github.io xxx是你的GitHub用户名 免费的代码存储空间 全是静态文件,快速访问 git版本管理,能快速回滚或者切换的某个版本 准备工作注册GitHub账
2019-09-09
下一篇 
TypeScript声明文件 TypeScript声明文件
声明文件简介当使用第三方库时,我们需要引用它的声明文件,才能获得对应的代码补全、接口提示等功能。 什么是声明语句假如我们想使用第三方库 jQuery,一种常见的方式是在 html 中通过 <script> 标签引入 jQuery
2019-09-05
  目录