简体   繁体   English

Amazon EC2上的SSH身份验证失败-RSEG1066身份验证失败

[英]SSH Auth Failed on Amazon EC2 - RSEG1066 Auth Failed

Sorry but I am a newbie... I have checked other questions but nothing has worked and I am not great with SSH. 抱歉,我是新手...我检查了其他问题,但没有任何效果,并且对SSH不太满意。

Followed the steps to connect to EC2 with SSH in Eclipse . 按照步骤在Eclipse中使用SSH连接到EC2 Worked like a charm. 像魅力一样工作。 Then I terminated the working server and started a new instance. 然后,我终止了工作服务器并启动了一个新实例。

Now I can't connect and receive 现在我无法连接并接收
RSEG1066 "Failed to connect sshd on server name " Auth failed

Also Port 22 is open -> 端口22也打开->
Port 22 (SSH) Source: 0.0.0.0/0

My SSH connection references the new hostname and I have applied my .pem file via rsa. 我的SSH连接引用了新的主机名,并且我已经通过rsa应用了.pem文件。 Any thoughts? 有什么想法吗? What else should I check? 我还应该检查什么?

Thank you. 谢谢。

Seems many people are having this problem with AWS when terminating an instance and launching a new instance. 终止实例并启动新实例时,似乎许多人都遇到了AWS问题 Here is what I did to solve the problem for me. 这是我为我解决问题所做的。

  1. Terminated instance 终止实例
  2. Deleted key pair from AWS console 从AWS控制台删除了密钥对
  3. Deleted key pair from client 已从客户端删除密钥对
  4. Launched a new instance 启动了一个新实例
  5. When prompted, used a different name for my key pair (.pem) file 出现提示时,请为我的密钥对(.pem)文件使用其他名称
  6. Choose the default security group 选择默认的安全组
  7. Added SSH / Port 22 inbound access to the security group 向安全组添加了SSH /端口22入站访问
  8. Connected (with user *ubuntu* since I am using an ubunutu server) 已连接(由于我正在使用ubunutu服务器,因此与用户* ubuntu *)

And if using Eclipse RSE like the tutorial link in the original question, be sure to restart Eclipse before connecting. 而且,如果像原始问题中的教程链接那样使用Eclipse RSE,请确保在连接之前重新启动Eclipse。

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

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