如果ssh localhost返回这样的提示 :Agent admitted failure to sign using the key 、
解决方案:
添加id_rsa到ssh-agent : ssh-add id_rsa
如果提示: “Could not open a connection to your authentication agent” 执行:ssh-agent bash
修改目录权限 :sudo chmod 600 ~/.ssh/id_rsa
sudo chmod 600 ~/.ssh/id_rsa.pub
sudo chmod 644 ~/.ssh/known_hosts
sudo chmod 755 ~/.ssh