Amazon ec2 AWS EC2登录问题

Amazon ec2 AWS EC2登录问题,amazon-ec2,Amazon Ec2,由于您正在使用Putty,请尝试使用,并在设置它时安装openssh客户端 Putty有一种不同的指定私钥的方法。(您需要将它们导入puttygen)我不清楚您是想在Windows上使用putty登录,还是从Ubuntu的终端登录。 如果使用Putty,则需要将.pem转换为.ppk。你需要puttygen来做这个。 Puttygen将把.pem作为输入,创建.ppk作为输出 接下来,打开putty并单击Connection->SSH->Auth。 单击browse并选择包含putty可读格式密

由于您正在使用Putty,请尝试使用,并在设置它时安装openssh客户端


Putty有一种不同的指定私钥的方法。(您需要将它们导入puttygen)

我不清楚您是想在Windows上使用putty登录,还是从Ubuntu的终端登录。 如果使用Putty,则需要将.pem转换为.ppk。你需要puttygen来做这个。 Puttygen将把.pem作为输入,创建.ppk作为输出

接下来,打开putty并单击Connection->SSH->Auth。 单击browse并选择包含putty可读格式密钥的.ppk文件

进入会话,进入ubuntu@your-ip地址和按ENTER键就可以了


我会发布屏幕截图,但我没有足够的声誉这么做。

你的connect命令是什么?ssh-v-I my.pemubuntu@54.84.209.156I我使用ubuntu作为它的ubuntu机器。你的日志并没有说你试图用
my.pem
登录,而是说你试图用
c:/Users/kirshna/Downloads/k3.pem
登录。您使用的是什么ssh客户端?我在windows中使用putty。我所做的是使用puttygen创建ppk文件,并使用puttyy导入,然后关闭连接..cygwin也有同样的问题。。我不知道如何解决这个问题。我们可以跳到Skype吗
OpenSSH_6.2p2, OpenSSL 1.0.1e 11 Feb 2013
debug1: Connecting to 54.85.116.155 [54.85.116.155] port 22.
debug1: Connection established.
debug1: identity file c:/Users/kirshna/Downloads/k3.pem type -1
debug1: identity file c:/Users/kirshna/Downloads/k3.pem-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1.1
debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1.1 pat OpenSSH_5*
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA a4:cd:40:19:f7:8d:e2:b7:c8:1f:ce:4f:34:50:0b:23
debug1: Host '54.85.116.155' is known and matches the ECDSA host key.
debug1: Found key in /home/kirshna/.ssh/known_hosts:8
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/kirshna/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Offering RSA public key: /home/kirshna/.ssh/id_rsa_724
debug1: Authentications that can continue: publickey
debug1: Offering RSA public key: /home/kirshna/.ssh/id_rsa_ordital
debug1: Authentications that can continue: publickey
debug1: Trying private key: c:/Users/kirshna/Downloads/k3.pem
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
Permission denied (publickey).