In this article I will Show You How to Setup SSH key in GitHub For Lifetime
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. π
-
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
Run Command
eval $(ssh-agent -s)
Run Command
ssh-add ~/.ssh/id_rsa
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
-
Go to your github profile settings and click SSH and GPG Keys then paste it. like this π
Then click Add SSH key button
-
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)