您的位置:首页 > 大数据 > 人工智能

解决 Agent admitted failure to sign using the key 问题 with ssh

2014-01-08 18:42 375 查看
之前如果建立 ssh 连接,

只要將公鑰複製到 ~/.ssh/authorized_keys 就可以利用金鑰登入

而不需要建立密碼.

現在的 ssh 使用同樣的方法會出現錯誤訊息

Agent admitted failure to sign using the key

解決方式 使用 ssh-add 指令將私鑰 加進來 (根据个人的密匙命名不同更改 id_rsa)

# ssh-add ~/.ssh/id_rsa
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: