Agent admitted failure to sign using the key 错误及解决方法

    编写expect脚本打通集群的时候,当把所有ssh文件夹分发后,从server机器登录其他机器的时候报错。错误为

    Agent admitted failure to sign using the key.

    解決方法:

    使用 ssh-add 指令將私钥加进来(根据个人的密匙命名不同更改 id_rsa
    # ssh-add   ~/.ssh/id_rsa   

原文地址:https://www.cnblogs.com/sidmeng/p/2386058.html