Skip to main content

1.0 Generate and Add SSH Keys to Github


*Any confusion on command syntax/structure can be clarified in Legend

  1. On device you want to ssh with, open a shell (e.g. PowerShell), enter the command below:

    • Just press Enter for the prompts

    • Make sure to note where the SSH keys are being stored

      • e.g.) C:\Users\[USER]\.ssh\

ssh-keygen -t ed25519
  1. Navigate to the .ssh folder

  2. Open the public key file (ends in .pub) in Notepad and copy just the key

  3. Add the public SSH key on user’s Github account

    • Click on Github Profile > Settings > SSH and GPG keys > New SSH key

  1. Paste the public key into user’s Github profile

    • Title can be anything (should note what machine it belongs to)

    • Key type: Authentication Key

You should now be able to SSH into the system that has your public keys with machines that hold the corresponding private key!

Last Updated: 2/22/2025
Contributors: Lilian, Vivian