Add Github SSH Auth to Windows WSL - 2023


1 min read

  1. Open WSL terminal

  2. Enter ssh-keygen -t ed25519 -C ""

  3. Enter cat ~/.ssh/ , copy ssh key "ssh-ed25519....."

  4. Go to and log in to your Github account if you haven't done that yet.

  5. Click New SSH key. Paste your copied public key into the text box under Key. You can also optionally input a title under Title, like "my laptop". Then click Add SSH key.

Try to clone a repo needs auth, when prompt "Are you sure you want to continue connecting (yes/no/[fingerprint])?", enter fingerprint(you can get it from the result of ssh-keygen). Then you will get "Please type 'yes', 'no' or the fingerprint: " prompt, enter "yes".