Skip to content
Sur Herrera Paredes edited this page Dec 14, 2018 · 2 revisions

There are excellent tutorials online. This is will just contains some quick things that might be useful.

Avoid typing password by using RSA keys

Check if you already hace RSA keys

From the computer(s) that you are using to to connect to sherlock check that you don't have files id_rsa and id_rsa.pub at .ssh/ by typing:

ls -la ~/.ssh/

If the files are there, skip the next step

Generate RSA keys

Type:

ssh-keygen -t rsa -b 4096

You will be prompted with several questions. Just hit enter.

Add keys to agent

Type

eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa

Add keys to github

  1. Go to your settings in GitHub.
  2. Go to the SSH and GPG keys section.
  3. Hit the New SSH Key button.
  4. Give it some memorable name.
  5. Copy the full content of the .ssh/id_rsa.pub file into the key textbox. IMPORTANT: Make sure you do not copy the contents of the .ssh/id_rsa file.
  6. Hit the Add SSH Key button.

Clone this wiki locally