简体   繁体   English

无法在AWS ec2 bitnami实例中使用SSH登录

[英]Not able to login with ssh in AWS ec2 bitnami Instance

I am not able to login with AWS ec2 Bitnami instance. 我无法使用AWS ec2 Bitnami实例登录。

I have created new keypair for the ec2-instance and i have converted the keypair into ppk with the puttygen. 我为ec2-instance创建了新的密钥对,并已使用puttygen将密钥对转换为ppk。

I have tried to use the login with the different user name like bitnami, ec2-user, ubuntu, root but i cant get any success i have read many blogs amazon document, bitnami document but and apply there that process but still not get success. 我尝试使用具有不同用户名的登录名,例如bitnami,ec2-user,ubuntu,root,但我无法获得任何成功,我已经阅读了许多博客Amazon文档,bitnami文档,但在那里应用该过程,但仍未获得成功。

I have created new user group and provided access for the ssh, http, https with there defult port. 我创建了新的用户组,并提供了带defult端口的ssh,http,https的访问权限。

Server Details. 服务器详细信息。

Instance type : m1.small 实例类型:m1.small

Description : https://bitnami.com Status : available Platform : Ubuntu Image Size : 10GB Visibility : Public 说明: https : //bitnami.com状态:可用平台:Ubuntu图像大小:10GB可见性:公共

bitnami-magento-1.9.0.1-0-linux-ubuntu-12.04.4-x86_64-ebs bitnami-magento-1.9.0.1-0-linux-ubuntu-12.04.4-x86_64-ebs

Whenever i am trying to login with the ssh i get the error message. 每当我尝试使用ssh登录时,都会收到错误消息。

Disconnected: No supported authentication methods available (server sent: publickey) 断开连接:没有可用的支持的身份验证方法(发送的服务器:publickey)

Help is very much appreciated. 非常感谢您的帮助。

Thanks 谢谢

This looks like your public key file is got some issue. 看来您的公开金钥档案有问题。 I am guessing it should be the puTTY bug which requires an extra newline character at the end of the key file. 我猜这应该是PuTTY错误,该错误要求在密钥文件末尾需要一个额外的换行符。

When creating the public key, open it in puTTYgen and copy and paste (this will make the key to be formatted in one line along with a newline) it to your authorized_keys and try to login. 在创建公共密钥,在打开的puttygen它复制并粘贴(这将使键在一行以换行符一起格式化)到您authorized_keys并尝试登录。

For more information, read a similar question 有关更多信息,请阅读类似的问题

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

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