重庆思庄Oracle、Redhat认证学习论坛

标题: Oracle Linux: How to Add/Replace a Passphrase for an existing ssh Key [打印本页]

作者: 刘泽宇    时间: 6 天前
标题: Oracle Linux: How to Add/Replace a Passphrase for an existing ssh Key
目标:
How to Add/Replace the Passphrase for existing ssh key

方法:
To add/replace the passphrase for an existing private key without regenerating the keypair by typing the following command:

$ ssh-keygen -p -f <ssh_private key>
例:-

$ ssh-keygen -p -f ssh-key-2022-03-29.key
Enter new passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved with the new passphrase.

To replace the existing passphrase with a new one, run the same command it would ask to provide the old passphrase and later provide new passphrase you wish






欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2