如何查看我的rsa密码​​?


20

我想我已经忘记了我的密码RSA 再次

有没有办法让我的本地命令行提示我,以便我可以至少检查一下我是否记得它是正确的,所以不必不必要地更改它?

下次我在便利贴上写它;)


您如何使用RSA密钥-SSH登录?Web服务器证书?
道格拉斯·里德

github和ssh登录
joachim 2010年

Answers:


28

采用:

ssh-keygen -y

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

例如:$ ssh-keygen -y -f〜/ .ssh / id_rsa_file这将提示输入“输入密码:”。如果密码错误,它将说“加载失败”,否则会将OpenSSH公钥打印到stdout。


6

尝试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.
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.