ubuntu git 报错Permission denied, please try again

ubuntu installed git and configured ssh and also configured ssh keys on github 

But it is not a problem of permissions even when an error is reported when git clone ###########

Finally figured it out today

After ssh is configured, there will be a .ssh file with the public key in it

 

 

First cd ~/.ssh after installing git

然后 ssh-keygen -t rsa -C "[email protected]"

In the prompt, you can know the generation path of id_rsa id_rsa.pub, then cat and copy

it's ok

 

If not, regenerate

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326175129&siteId=291194637