Search code examples
githubssh-keysgithub-for-mac

Creating a passphrase for my ssh key on GitHub


I'm trying to setup a GitHub account and every time I get to the point of entering a passphrase for my SSH key my terminal freezes. Here are my steps:

Parkers-MacBook-Pro:~ ppreyer$ ssh-keygen -t rsa -C [email protected] Generating public/private rsa key pair. Enter file in which to save the key (/Users/ppreyer/.ssh/id_rsa): (/Users/ppreyer/.ssh/id_rsa): Created directory '/Users/ppreyer/.ssh'. Enter passphrase (empty for no passphrase): (WONT LET ME TYPE ANYTHING)

Anybody else run into this problem?


Solution

  • You're on a unix compliant machine. Therefore, most terminal-based password entry mechanisms use what's called a "Unix password field" (as far as I know, that's the most common name for it). You do not actually see the characters you are typing, but they are there. Simply make sure you type the same thing twice and you should be good.

    Give it a try, type your password and press Enter. Type it again and press Enter again. You've just create an SSH passphrase.