使用openssl命令去掉私钥的密码
openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new
备份旧私钥
mv ~/.ssh/id_rsa ~/.ssh/id_rsa.backup
使用新私钥
mv ~/.ssh/id_rsa_new ~/.ssh/id_rsa
设置权限
chomd 600 ~/.ssh/id_rsa
这样同一个公钥,本地使用加密的私钥登陆,服务经常会通过密钥批量管理或者rsync时免去多生成一对密钥的麻烦
使用openssl命令去掉私钥的密码
openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new
备份旧私钥
mv ~/.ssh/id_rsa ~/.ssh/id_rsa.backup
使用新私钥
mv ~/.ssh/id_rsa_new ~/.ssh/id_rsa
设置权限
chomd 600 ~/.ssh/id_rsa
这样同一个公钥,本地使用加密的私钥登陆,服务经常会通过密钥批量管理或者rsync时免去多生成一对密钥的麻烦