git clone from Gighub Fail

#try to clone(I have added my pub key to git hub , and I used to success at home, let me figure  out what the problem is)

cor@debian:~/geekbang$ git clone git@github.com:CornerCornerLi/Python000-class01.git
Cloning into 'Python000-class01'...
Warning: Permanently added the RSA host key for IP address '140.82.114.3' to the list of known hosts.
sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

#2. is this caused by my git configuration? references from github, let me  new generate a ssh key for a try.

Oh yeath, it seems because, I missed below two steps, successfully finally.

Start the ssh-agent in the background.

$ eval "$(ssh-agent -s)"
> Agent pid 59566
Add your SSH private key to the ssh-agent. If you created your key with a different name, or if you are adding an existing key that has a different name, replace id_rsa in the command with the name of your private key file.

$ ssh-add ~/.ssh/id_rsa
原文地址:https://www.cnblogs.com/winditsway/p/12510413.html