ssh链接git服务器,解决Agent admitted failure to sign using,错误信息如下:
Agent admitted failure to sign using the key.
[email protected] 's password:
Permission denied, please try again.
[email protected] 's password:
Permission denied, please try again.
[email protected] 's password:
Permission denied (publickey,password,keyboard-interactive).
fatal: Could not read from remote repository.
原因是ssh-agent服务没把新产生的/home/you/.ssh/id_rsa 包含进去,解决方法如下:
eval "$(ssh-agent -s)"
ssh-add
如果你的私钥文件已经改名,不是默认的id_rsa,请输入你的正确的私钥文件路径:
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/my_other_key