Search code examples
gitgithubssh-keys

How can I type the passphrase for a Git SSH key?


I am tying to generate a SSH key on Git, but I'm stuck in the passphrase part: I'm unable to type it. The passphrase field appears without any characters, even though I'm typing them.

$ ssh-keygen -t ed25519 -C "[email protected]"
Generating public/private ed25519 key pair.
Enter file in which to save the key (/c/Users/me/.ssh/id_ed25519):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Passphrases do not match.  Try again.

As you can see, I can't type anything. There are some similar questions where people say that the text is hidden, but that tecnically you can still type it. The thing is that Git says that the passphrase is not matching on both fields, even though I'm tecnically typing the same characters on both of them. Im on Windows 10, with the latest 64 bits Git release installed.

Just to make it clear, this is my goal:

Create a SSH key so I do not need to type my GitHub credentials every time I want to push files to to my GitHub repo.


Solution

  • As said by @torek:

    press ENTER (or RETURN or whatever the key is labeled) on your keyboard twice, so that you are using the no-passphrase case [...]

    It worked!