取消私钥中的密码:1. 使用openssl命令去掉私钥的密码openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new2. 备份旧私钥mv ~/.ssh/id_rsa ~/.ssh/id_rsa.backup3. 使用新私钥mv ~/.ssh/id_rsa_new ~/.ssh/id_rsa4. 设置权限chmod 600 ~/.ssh/id_rsa
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
chmod 600 ~/.ssh/id_rsa
转自: http://ju.outofmemory.cn/entry/621