git设置过秘钥后 pull时需要输入密码的错误

git操作的时候pull没有将项目拉下来,我SSH key已经进行了秘钥添加权限,这个时候拉去项目的时候呀却需要密码,我也是郁闷了好久啊,

ECDSA key fingerprint is SHA256:hvr5FcWTXeBO0fIQ8F9GuhAWCAQVT6GtD5Qx3d8SNVE.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘[******89]:9880’ (ECDSA) to the list of known hosts.
sign_and_send_pubkey: signing failed: agent refused operation
git@9’s password:
Permission denied, please try again.
git@1
’s password:
Permission denied, please try again.
git@11******89’s password:
Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

解决办法是:
命令行输入

eval ‘ssh-agent -s’

ssh-add

即可

猜你喜欢

转载自blog.csdn.net/qq_42817166/article/details/86475709