Tuesday, August 29, 2023

Generate SSH Keys for Github GIT

 

GIT


In your local git, run the ssh-keygen command on your linux box from $HOME/.ssh folder
In my case $HOME is set /home/git

Command to run: ssh-keygen -t rsa -b 4096 -C "email_id"

ssh-keygen -t rsa -b 4096 -C "yashwanthsn@gmail.com"

Login to GITHUB: https://github.com

If you do not have an account, create one and login. Click on Profile -> Settings
Click on SSH and GPG keys, click on "New SSH Key" button and copy the $HOME/.ssh/id_rsa.pub public keys generated from step1 and paste it under Key section, add a name and then click on "Add SSH Key" button