openssl去掉私钥密码

执行

1
openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new

备份旧私钥

1
mv ~/.ssh/id_rsa ~/.ssh/id_rsa.backup

使用新私钥

1
mv ~/.ssh/id_rsa_new ~/.ssh/id_rsa

设置权限

1
chmod 600 ~/.ssh/id_rsa
作者

Kain

发布于

2021-04-28

更新于

2021-04-25

许可协议

CC BY-NC-SA 4.0

评论