The -p option 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. Use -f {filename} option to specifies the filename of the key file. For example, change directory to .ssh:
$ cd .ssh
To change RSA passphrase, enter:
$ ssh-keygen -f id_rsa -p
To change DSA passphrase, enter:
$ ssh-keygen -f id_dsa -p
$ cd .ssh
To change RSA passphrase, enter:
$ ssh-keygen -f id_rsa -p
To change DSA passphrase, enter:
$ ssh-keygen -f id_dsa -p
本文介绍如何使用ssh-keygen命令更改SSH密钥的口令,包括RSA和DSA类型密钥。通过简单的步骤说明如何指定密钥文件及输入新旧口令。
1285

被折叠的 条评论
为什么被折叠?



