DEV Community

Cover image for Github SSH KEY Setup (Easy)
Sagar Roy
Sagar Roy

Posted on

Github SSH KEY Setup (Easy)

In this article I will Show You How to Setup SSH key in GitHub For Lifetime

  1. First you have to go on this path of your PC Local Disk / Users / Your PC Name Then if you find .ssh folder then you have to delete it. if you haven't find then continue. πŸ‘‡

  2. Go to your terminal & run Command ssh-keygen
    then automatically show it πŸ‘‡

    Enter file in which to save the key (path): Press Enter
    Enter passphrase (empty for no passphrase): Press Enter
    Enter same passphrase again: Press Enter

You will see πŸ‘‡
Alt Text

  1. Run Command eval $(ssh-agent -s)

  2. Run Command ssh-add ~/.ssh/id_rsa

  3. Go to your Local Disk / Users / Your PC name or anonymous then you should see this file id_rsa.pub then open it with with Notepad. then Copy all text

  4. Go to your github profile settings and click SSH and GPG Keys then paste it. like this πŸ‘‡
    Alt Text

    Then click Add SSH key button

  5. Again Run Comman ssh -T git@github.com
    then it will show like this πŸ‘‡

    Are you sure you want to continue connecting (yes/no/[fingerprint])?

write yes and hit Enter that's it.
Now you can access your github profile for git push, git pull everthing that you need.

Happy Hacking!

Top comments (0)