[email protected]出现Permission denied (publickey)
或者
Please make sure you have the correct access rights
and the repository exists.
FATAL Something’s wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
当出现这个问题时,有两个比较简单的解决办法:
1) 给文件起名字的时候使用 ‘ id_rsa ’ 这个名字
2) 如果亲非要自己取名子,那就使用
ssh-add ~/.ssh/你的名字
将自己起的名字加入到ssh中
这样再使用
ssh -T [email protected]
就会看到你想要的效果了。
注:在生成密钥的时候,请在 “ ~/.ssh/ ”目录下操作。或者生成后把文件移动到“ ~/.ssh/ ”目录下。
也可以用:
ssh-add -l 查看加入的密钥列表
ssh -v [email protected] 查看调试信息
参考:
https://www.cnblogs.com/lxwphp/p/7884700.html