Generating SSH Key for Authentication

Video Tutorial

  1. Download this file to your ~/Downloads directory.
  2. Execute the command below to change directories to ~/Downloads.
    • cd ~/Downloads
  3. Execute the command below to ensure the newly downloaded generate-ssh-key.sh file can be executed
    • chmod u+x ./generate-ssh-key.sh
  4. Execute the command below to execute the newly downloaded generate-ssh-key.sh file.
    • ./generate-ssh-key.sh MY_GITHUB_EMAIL
      • replace MY_GITHUB_EMAIL with the email you used to create a github account.
      • this command will copy the key to your clipboard, allowing you to paste it in the next step.
  5. Navigate to https://github.com/settings/ssh/new to paste the value from your clipboard to a newly generated key