AWS EC2登录问题

时间:2014-03-18 04:00:20

标签: amazon-ec2

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).

2 个答案:

答案 0 :(得分:1)

我不清楚您是否希望在Windows上使用putty登录帮助,或者您是从Ubuntu中的终端登录。 如果您使用的是Putty,那么您需要将.pem转换为.ppk。你需要puttygen。 Puttygen将把你的.pem作为输入并创建.ppk作为输出。

接下来,打开putty并单击Connection-> SSH-> Auth。 单击“浏览”并选择以腻子可读格式包含密钥的.ppk文件。

进入Session,输入ubuntu @ your-ip-addess并点击ENTER就可以了。

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

答案 1 :(得分:0)

由于您使用的是Putty,请尝试使用Cygwin,然后在设置时安装openssh客户端。

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

相关问题