本文翻译自:Trying to SSH into an Amazon Ec2 instance - permission error
This is probably a stupidly simple question to some :) 对某些人来说,这可能是一个愚蠢的简单问题:)
I've created a new linux instance on Amazon EC2, and as part of that downloaded the .pem file to allow me to SSH in. 我在Amazon EC2上创建了一个新的linux实例,并且作为其中一部分下载了.pem文件,以允许我进行SSH输入。
When I tried to ssh with: 当我尝试使用ssh时:
ssh -i myfile.pem <public dns>
I got: 我有:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&#