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