---
title: "证书格式转换： pem转成ppk"
author: "morry"
date: "2012-11-16T22:48:51Z"
tags: []
categories: ["非技术"]
slug: "pem-ppk"
draft: false
lastmod: "2012-11-16T22:48:51Z"
id: 1728258
url: "https://morry.iteye.com/blog/1728258"
---

在linux/mac中可以直接使用pem格式的证书：例如远程登录linux主机：ssh -i xx.pem  xxx@host

但是在windows就不是很方便了， 下面是将pem格式转成ppk格式，然后利用Putty登录。

 

1\. 下载Puttygen.exe:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

2\. 双击启动Puttygen.exe

3\. 点击Load，然后选择pem格式的证书，然后点击打开

4\. 提示导入成功后，点击Ok

5\. 点击Save private key，提示是否确认不输入密码保护private key，点击OK， 然后起个名字保存成ppk格式，

6\. 关闭Puttygen

 

 

登录：

1\. 启动Putty， 在connection -&gt;  SSH  -&gt;  Auth里的private key for authentication 浏览选择刚才的ppk格式证书