DEV Community

Cover image for SSH Keys for GitHub (Debian GNU/Linux)
Mohammad Reza
Mohammad Reza

Posted on

SSH Keys for GitHub (Debian GNU/Linux)

That is a very nice way if you want to dont write your password for every push in Github :)

cd ~/.ssh
ls
Enter fullscreen mode Exit fullscreen mode

If you have "id_rsa.pub" you dont need to generate it but if you dont have it lets make it

 ssh-keygen -o -t rsa -C "azibom@gmail.com"
Enter fullscreen mode Exit fullscreen mode

Now you should see it in ~/.ssh
Lets open it

cat cat ~/.ssh/id_rsa.pub
Enter fullscreen mode Exit fullscreen mode

Now copy what you see and go to your github

Go to Account Settings > Ssh keys and pase what you have been copied

Alt Text
Alt Text

And now save it
Done

Top comments (0)