Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 2.13 KB

setup-ssh-keys.md

File metadata and controls

34 lines (25 loc) · 2.13 KB

How to setup your SSH Key with GitHub

Note:

  • You do not need to complete this step if you are using GitHub Desktop
  • If using a WINDOWS MACHINE, please use Git CMD instead of the command prompt

Step 1: Generate your SSH Key on your local Computer

  1. In your terminal go into the ssh folder by running: cd ~/.ssh cd-ssh

  2. In your current terminal (if you don't already have an ssh-key generated), generate an ssh-key by using the command: ssh-keygen -t rsa -b 4096 -C "[email protected]"

  • You will be asked to provide an location to save the key. Press ENTER to leave this bank - it will use the current location
  • You will be asked to enter a passphrase. You can skip this step if you wish by pressing ENTER Screenshot from 2022-09-16 08-26-40
  1. In your current terminal, view your ssh-key by running cat id_rsa.pub Screenshot from 2022-09-16 08-27-00

  2. Copy the results of the previous command (you will need this later on)

Step 2: Add your SSH Key to GitHub

  1. In your GitHub account, click on your icon in the upper right corner, and go to:
    • Settings -> SSH and GPG Keys
  2. Click the Green Button labeled "New SSH Key"
  3. Add a title for your key, and paste the contents of your key from the previous section, in the 'Key' Section
  4. Click the Green Button labelled 'Add SSH Key' Screenshot from 2022-09-16 08-27-24

Additional Instructional Resources: