---
title: "SSH私钥取消密码(passphrase)"
author: "cjx186"
date: "2015-07-25T13:59:01Z"
tags: []
categories: ["非技术"]
slug: "ssh-passphrase"
draft: false
lastmod: "2015-07-25T13:59:01Z"
id: 2230159
url: "https://xml.iteye.com/blog/2230159"
---

取消私钥中的密码：
1.使用openssl命令去掉私钥的密码openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new
2.备份旧私钥mv ~/.ssh/id_rsa ~/.ssh/id_rsa.backup
3.使用新私钥mv ~/.ssh/id_rsa_new ~/.ssh/id_rsa
4.设置权限chomd 600 ~/.ssh/id_rsa