- Run Commands in GitBash
Check for Exisiting SSH keys
ls -al /.ssh
Lists the files in your .ssh directory, if they exist
Generate New SSH Key
1st : ssh-keygen -t rsa -b 4096 -C "<Enter Email Address>" and Hit Enter
2nd : Enter passpharse if needed (If not hit enter)
3rd : Repeat same passpharse
Adding your SHH key to the ssh-agent
1st : eval $(ssh-agent -s)
2nd : ssh-add ~/.ssh/id_rsa
Copy Key to Clipboard
clip < ~/.ssh/id_rsa.pub
Setup SSH key in Github
- Open SSH Key Page and Click on New SSH Key
- Add Title to Nickname for the SSH Key (eg: Personal Laptop)
- Paste Key from Clipboard
- Click on Add SSH Key