网站首页 文章专栏 使用公钥作为密码
使用公钥作为密码
创建于:2018-03-13 16:00:00 更新于:2024-04-18 17:15:04 羽瀚尘 560
linux设备 工具,coding,rsa

碰到过的关于公钥的问题

设置了pass phrase后嫌麻烦,又该怎样去除呢?

首先进入私钥所在目录

cd ~/.ssh/

然后使用ssh-keygen命令

ssh-keygen -f id-rsa -p

按提示操作即可 terminal的输出是这样的

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