1. 程式人生 > >github新增公鑰後報錯:sign_and_send_pubkey: signing failed: agent refused operation

github新增公鑰後報錯:sign_and_send_pubkey: signing failed: agent refused operation

問題描述:在github已有的一個私有倉庫中添加了公鑰,但是報錯“sign_and_send_pubkey: signing failed: agent refused operation”,並且提示“Please make sure you have the correct access rights and the repository exists.”,如下圖:


解決辦法:

eval "$(ssh-agent -s)"
ssh-add