简体   繁体   English

无法使用Putty登录EC2(AWS)

[英]Unable to login to EC2 (AWS) using Putty

I want to login to the instance i created on Amazon Web Services. 我想登录我在Amazon Web Services上创建的实例。 I get the following error. 我收到以下错误。

login as: root
Server refused our key
Using keyboard-interactive authentication.
Password: 

I dont know what to enter as Password. 我不知道输入什么密码。 I have given the privatekey created from PuttyGen. 我给了PuttyGen创建的私钥。

The username of Amazon AMI is difference depend on the AMI creator, Amazon AMI的用户名取决于AMI创建者,

for Amazon AMI , user ec2-user for Ubuntu AMI , user ubuntu 对于Amazon AMI,Ubuntu AMI的用户ec2-user,用户ubuntu

You may search from the ami-id to see what is the default username of that AMI. 您可以从ami-id中搜索以查看该AMI的默认用户名。 Please ensure that this key you use is the private key for the public key which you put to key-binding when you created the instance. 请确保您使用的此密钥是您在创建实例时为密钥绑定添加的公钥的私钥。

The created SSH key was wrong. 创建的SSH密钥错误。 The key happends to be SSH 1. not SSH2. 关键是SSH 1.而不是SSH2。 For me it worked for root. 对我来说,它适用于root。

Try logging in as ec2-user. 尝试以ec2-user身份登录。 On the instances I have tried root login was disabled by default. 在我尝试root登录的实例上默认禁用。

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

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