我在创建 ec2 实例时下载了 .ppk。此 .ppk 文件适用于 putty。但我现在需要 .pem 文件来连接到实例。我尝试使用 puttyGen 将 ppk 文件转换为 pem。
在 puttyGen 中,我从 Action Tab 加载了 .ppk 文件。之后,我使用选项
1. Export OpenSSHKey
和 2. Export OpenSSHKey (force new file format)
将文件转换为 .pem。我试图在 sftp /vscode 中使用这个文件。
{
"name": "AWS3",
"host": "13.126.103.221",
"protocol": "sftp",
"port": 22,
"username": "ubuntu",
"privateKeyPath": "G:/aws-3/aws3.pem",
"remotePath": "/var/www/",
"uploadOnSave": true
}
我得到一个错误:
All configured authentication methods failed
.
我试过在 Netbeans IDE 中使用这个文件。它说文件无效。
我错过了什么吗?