joa*_*him 34 ssh passwords command-line rsa
我想我已经忘记了我的密码RSA再次。
有没有办法让我的本地命令行提示我输入它,这样我就可以检查至少我记得的内容是否正确,这样我就不会不必要地更改它?
下次我把它写在便利贴上 ;)
小智 52
用:
ssh-keygen -y
-y This option will read a private OpenSSH format file and
print an OpenSSH public key to stdout.
Run Code Online (Sandbox Code Playgroud)
例子:
$ ssh-keygen -y -f ~/.ssh/id_rsa_file
Run Code Online (Sandbox Code Playgroud)
这将提示输入密码。如果密码错误,它会说“加载失败”,否则它会将 OpenSSH 公钥打印到标准输出。
尝试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.
Run Code Online (Sandbox Code Playgroud)