问题描述
有没有办法将 PEM 文件转换为 PPK 文件?(你可能猜到 Amazon EC2 给了我一个 PEM 文件,我需要使用 PPK 格式进行 SSH 连接).
使用
Is there a way to convert PEM files to PPK files? (you may guess that Amazon EC2 gives me a PEM file, and I need to use the PPK format for SSH connectivity).
Use PuTTYGen
Creating and Using SSH Keys
Overview
vCloud Express now has the ability to create SSH Keys for Linux servers. This function will allow the user to create multiple custom keys by selecting the "My Account/Key Management" option. Once the key has been created the user will be required to select the desired SSH Key during the "Create Server" process for Linux.
Create and Use SSH Keys
- Create keys
- Navigate to "My Account"
- Select "Key Management"
- Create New Key.
- During the key creation process you will be prompted to download your private key file in .PEM format. You will not be able to download the private key again as it is not stored in vCloud Express.
- The "Default" checkbox is used for the API.
- Deploy server and select key
Connect
- SSH (Mac/Linux)
- Copy .PEM file to the machine from which you are going to connect.
- Make sure permissions on .PEM file are appropriate (chmod 600 file.pem)
- Connect with ssh command: ssh vcloud@ipaddress –i privkey.pem
- Putty (Windows)
- Download Putty and puttygen from - here
- Use puttygen to convert .PEM file to .PPK file.
- Start puttygen and select "Load"
- Select your .PEM file.
- Putty will convert the .PEM format to .PPK format.
- Select "Save Private Key" A passphrase is not required but can be used if additional security is required.
Connect with Putty.
- Launch Putty and enter the host IP address. If connecting to the 10.X private address you must first establish an SSL VPN connection.
- Navigate to Connection/SSH/Auth
Click "Browse" and select the .PPK file you exported from puttygen.
Click "Open." When connection comes up enter username (default is vcloud).
- SSH (Mac/Linux)
Instructions copied from here
这篇关于将 PEM 转换为 PPK 文件格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!