Connecting to GitHub with SSH

 

Connecting to GitHub with SSH

* See: Connecting to GitHub with SSH
* Briefly:

# Check ssh keys
ls -al ~/.ssh
 
# Generate ssh keys
ssh-keygen -t rsa -b 4096 -C "my_email@my.com"
 
# Add ssh key to ssh-agent
# Start ssh-agent in the background
eval $(ssh-agent -s)
ssh-add ~/.ssh/id_rsa
 
# Copy ssh key to clipboard
clip < ~/.ssh/id_rsa.pub
 
# Open GitHub keys page: https://github.com/settings/keys
# Click New SSH key button
# Enter:
Title: my_email@my.com
key: Control-v to paste
 
# Now you can clone repository with ssh key
git clone git@github.com:MyGibHub/MyRepo.git
This entry was posted in git and tagged , . Bookmark the permalink.