- [root@localhost ~]# ssh-keygen -p
- Enter file in which the key is (/root/.ssh/id_rsa): /root/.ssh/id_rsa //这里让输入你的私钥地址,默认可以直接回车
- Enter old passphrase: //这里输入你老的密钥密码
- Key has comment '/root/.ssh/id_rsa'
- Enter new passphrase (empty for no passphrase): //这里输入新的密钥密码
- Enter same passphrase again: //再次输入密码
- Your identification has been saved with the new passphrase.
编辑回复