描述
我们在配置通过 SSH 方式连接 GitHub 或 码云账号时,经常会出现各种异常,这里进行一下常见异常汇总;
异常汇总
1.the authenticity of host github.com can't be established 异常
先输入:no
再输入:ssh-keyscan github.com >> ~/.ssh/known_hosts
2.Could not open a connection to your authentication agent 异常
在执行 ssh-add ~/.ssh/id_ras
时发生此错;
执行如下命令:ssh-agent bash
然后再重新执行 ssh-add ~/.ssh/id_ras
即可消除异常;