开发者

Why doesn't ssh-keygen let me type in my passphrase in the prompt?

开发者 https://www.devze.com 2022-12-24 20:31 出处:网络
Note: this is not real information: $ ssh-keygen -t rsa -C "tekkub@gmail.com" Generating public/private rsa key pair.

Note: this is not real information:

$ ssh-keygen -t rsa -C "tekkub@gmail.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Tekkub/.ssh/id_rsa):

ssh.txt

I开发者_Python百科 entered a file name here. Not sure if I should have:

Enter passphrase (empty for no passphrase):

I am stuck here. I type and it doesn't work.


Passwords normally don't show up in the console when you type them. That is intended. Just type your password, hit enter and repeat. It will work.


That's why ssh comes with a program called ssh-agent which caches your passphrase (Okay, it actually caches the decrypted key, not the passphrase, same result). That way you can have a passphrase on your key and still not have to type it each time.

0

精彩评论

暂无评论...
验证码 换一张
取 消