ubuntu – AWS连接错误:权限被拒绝(publickey)

前端之家收集整理的这篇文章主要介绍了ubuntu – AWS连接错误:权限被拒绝(publickey)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
对不起,如果这听起来多余,但相信我不是.我已经尝试了几乎与此问题相关的大多数链接,但到目前为止我没有任何工作.我甚至试过这篇文章二.以下是我到目前为止所尝试的内容

>密钥400的许可以及600
> ubuntu作为用户名因为它的Ubuntu 14.04
> IP是正确的,我甚至尝试过公共DNS
>键附加到实例
>使用FireFox浏览器的AWS Java客户端(MindTerm).但是当我按下输入时它会显示我对抗我的IP这一行时出错.即使我很幸运,它只会询问我给ubuntu的用户名然后退出给出错误“I / O错误 – 读取失败:未知错误”或者只是让我回到IP步骤.

MindTerm home: /home/waqas/.mindterm/
SSH Server/Alias: 54.191.37.141
Connected to server running SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2

Server's hostkey (ssh-rsa) fingerprint:
openssh md5:  95:44:f1:40:07:90:00:2a:7d:9a:1f:49:a1:71:8a:0b
bubblebabble: xilon-segen-tufep-manir-rekad-lucag-fetoz-sover-hyhuh-kafiz-kixox

我在这个问题之前做的最后一件事就是2天前我尝试使用此链接http://www.krizna.com/ubuntu/setup-ftp-server-on-ubuntu-14-04-vsftpd/在我的客户端上安装FTP服务器.不幸的是,这个链接没有按预期工作,我最终在FTP登录中没有成功.今天当我尝试使用我的密钥对登录时,它给了我错误.

下面是我的ssh尝试的日志

waqas@waqas-itu:~/Downloads/key$ssh -v -i test.pem ubuntu@54.191.37.141
OpenSSH_6.0p1 Debian-3ubuntu1.2,OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 54.191.37.141 [54.191.37.141] port 22.
debug1: Connection established.
debug1: identity file test.pem type -1
debug1: identity file test.pem-cert type -1
debug1: Remote protocol version 2.0,remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.0p1 Debian-3ubuntu1.2
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 80:dd:8f:50:a3:80:81:00:39:06:e4:05:6e:f3:1f:16
debug1: Host '54.191.37.141' is known and matches the ECDSA host key.
debug1: Found key in /home/waqas/.ssh/known_hosts:108
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: testserverpem.pem
debug1: Authentications that can continue: publickey
debug1: Offering RSA public key: waqas.jamal@***.com
debug1: Authentications that can continue: publickey
debug1: Trying private key: test.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).
尝试从known_hosts文件删除密钥,然后重新尝试连接.

这应该至少elimNate任何“旧的”缓存连接

猜你在找的Ubuntu相关文章