Getting a new SSH Key by GitBash

  • Open Git Bash.
  • Paste the text below, substituting in your GitHub email address.

ssh-keygen -t ed25519 -C [email protected]

  • When you are asked to “Enter a file in which to save the key,” press Enter. This accepts the default file location.

Enter a file in which to save the key (/c/Users/you/.ssh/id_ed25519):[Press enter]

  • At the prompt, type a secure passphrase. For more information, see “Working with SSH key passphrases.”

Enter passphrase (empty for no passphrase): [Type a passphrase or just press enter]
Enter same passphrase again: [Type passphrase or just press enter again]

Thats it! You can find and copy your SSH key by locating the file folder or just open your GIT GUI app and click “Help” then click “Show SSH Key”.

Leave a Comment

Your email address will not be published. Required fields are marked *