Recently, I tried to clone a repository I was working on in GitHub that I had created, but I received the following error:
Permission denied (publickey). fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists.
Apparently, I needed to create an SSH key and add it to Github SSH Keys in order to access the repository. To do this, I followed these instructions (on https://github.com/facebookresearch/deepmask/issues/23):
Generate SSH key using ssh-keygen -t rsa -b 4096 -C "[email protected]".
Copy the output of cat id_rsa.pub
Paste the above copied output into your Github profile -> Settings -> SSH and GPG Keys -> Add new SSH key
Regarding this, I created an SSH key, but couldn’t find it, so I ended up following the path: /Users/jessicapeng/.ssh/id_rsa.pub and I ran command cat .ssh/id_rsa.pub once I was in the directory jessicapeng in order to get it. Then, I followed the instructions and went to my Github Profile > Settings> SSH and GPG Key > Add SSH Key. And afterwards, I was able to successfully clone it and use git with it!
some really superb blog posts on this internet site, appreciate it for contribution.
I have learnt too much from this website about computer science and AI, Thanks