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

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

@H_114_7@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: roaR_347_11845@ing 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 – AWS连接错误:权限被拒绝(publickey)全部内容,希望文章能够帮你解决ubuntu – AWS连接错误:权限被拒绝(publickey)所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:对不起