简体   繁体   English

EC2 权限被拒绝(公钥)

[英]EC2 permission denied(public key)

I am trying to connect parse server EC2 instance.我正在尝试连接解析服务器 EC2 实例。 But in ubuntu terminal after pasting ssh -i "instame.pem" admin@ec2.ap-south-1.compute.amazonaws.com, error is coming as permission denied(public key).但是在粘贴 ssh -i "instame.pem" admin@ec2.ap-south-1.compute.amazonaws.com 后的 ubuntu 终端中,由于权限被拒绝(公钥)而出现错误。 I have checked every thing and it is fine.我检查了每件事,一切都很好。 As the instance plat form is Debian then the user name is admin.因为实例平台是Debian所以用户名为admin。 Despite of writing the expected command why I am getting the error?尽管编写了预期的命令,但为什么会出现错误?

"Permission denied (publickey)" and "Authentication failed, permission denied" errors occur if:如果发生以下情况,则会出现“权限被拒绝(公钥)”和“身份验证失败,权限被拒绝”错误:

  • You're trying to connect using the wrong user name for your AMI.您正在尝试使用错误的 AMI 用户名进行连接。
  • The file permissions within the operating system are incorrect on the instance.操作系统中的文件权限在实例上不正确。
  • The incorrect SSH public key (.pub) file is in the authorized_keys file.错误的 SSH 公钥 (.pub) 文件位于 authorized_keys 文件中。

Double check these before attempting another connection.在尝试另一个连接之前仔细检查这些。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM