Github SSH Key

with 5 Comments

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!

5 Responses

  1. Lucius Salam
    | Reply

    some really superb blog posts on this internet site, appreciate it for contribution.

  2. Niharika Malhotra
    | Reply

    I have learnt too much from this website about computer science and AI, Thanks

  3. Mrmmbs Vision
    | Reply

    This blog provides valuable insights into the world of marketing and web design. It’s evident that the author understands the importance of a strong online presence for businesses

  4. Orion 132
    | Reply

    Very nice information about Github SSH Key

  5. Wizfair Travels
    | Reply

    Your blog is my go-to for reliable information on [niche]. Your ability to simplify complex concepts is truly commendable. Thanks for making it easy to learn

Leave a Reply