1. 程式人生 > >git設定過祕鑰後 pull時需要輸入密碼的錯誤

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

[email protected]9’s password:
Permission denied, please try again.
[email protected]
’s password:
Permission denied, please try again.
[email protected]******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

即可