Open the appropriate command-line interface for your operating system:
SSH keys should be stored in the following location based on your operating system:
If the directory doesn't exist, create it using:
Windows:
mkdir %USERPROFILE%\.ssh
macOS/Linux:
mkdir -p ~/.ssh
Check if you already have an existing key pair:
Windows:
dir %USERPROFILE%\.ssh\id_rsa.pub
macOS/Linux:
ls ~/.ssh/id_rsa.pub
If you see id_rsa.pub
, you already have a key pair and can skip the next step.
If you don't have an existing key pair, generate a new one using:
ssh-keygen -t rsa -b 4096 -C "your_wit_email@wit.edu"
When prompted:
Never share your private key file (id_rsa
). Only share the public key file (id_rsa.pub
) when required.