Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pictolearn/eff1aa86657f64fea5b3ef45dfdd7e0f to your computer and use it in GitHub Desktop.
Save pictolearn/eff1aa86657f64fea5b3ef45dfdd7e0f to your computer and use it in GitHub Desktop.
# Create a new SSH Key
# -t stands for ‘type’ and rsa is type of encryption
# -C is for comment
ssh-keygen -t rsa -C “your-email-address”
# The above command shows rs key pair
# Enter file in which to save the key (/c/Users/your_username/.ssh/id_rsa) ~/.ssh/id_rsa_<your-file-name>
# make sure you have the file
ls -al ~/.ssh
# Go to github, copy the contents of <your-file-name>.pub to the SSH key
# Add the ney key to your list
ssh-add ~/.ssh/id_rsa_<your-file-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment