Как я могу проверить мою rsa пароль?

22121
joachim

Я думаю, что я забыл свой RSA ключевую фразу снова .

Есть ли способ, чтобы моя локальная командная строка запрашивала меня об этом, чтобы я мог проверить, правильно ли я помню то, что я помню, как правильно, чтобы я не изменил это без необходимости?

В следующий раз я напишу это на посте;)

11
Как вы используете ключ RSA - логин SSH? Сертификаты веб-сервера? Douglas Leeder 13 лет назад 0
вход в github и ssh joachim 13 лет назад 0

2 ответа на вопрос

15
Al Conrad

Use:

ssh-keygen -y -y This option will read a private OpenSSH format file and print an OpenSSH public key to stdout. 

Ex: $ ssh-keygen -y -f ~/.ssh/id_rsa_file This will prompt to "Enter passphrase:". Given a wrong passphrase it will say "load failed" otherwise it will print the OpenSSH public key to stdout.

5
blahdiblah

Попробуй ssh-keygen -p:

-p Requests changing the passphrase of a private key file instead of creating a new private key. The program will prompt for the file containing the private key, for the old passphrase, and twice for the new passphrase. 

Похожие вопросы