AWS EC2 SSH登录失败 - 拒绝权限(公钥)

时间:2015-04-16 19:30:23

标签: amazon-web-services ssh amazon-ec2 permissions denied

这真的开始让我感到烦恼。我在AWS EC2中的一个新项目上工作(测试),我可以成功创建一个LAMP堆栈,并且只要我正在玩其他进程就让FTP工作,我似乎总是把自己锁在服务器之外?即当我尝试SSH回来时,我得到了许可被拒绝(公钥)。这已经发生了大约4/5次。

我机器上的私钥是chmod 400,永远不会改变。 ftp服务器仍在工作,其他服务仍在运行,但我仍然无法访问。

有没有人有任何想法?

提前致谢

Glenns-MacBook-Pro:~ deepgc$ ssh -i /Users/deepgc/Dropbox/ft247\ management/Hosting/AWS/247HouseRadio.pem ec2-user@54.191.212.253 -v
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to 54.191.212.253 [54.191.212.253] port 22.
debug1: Connection established.
debug1: identity file /Users/deepgc/Dropbox/ft247 management/Hosting/AWS/247HouseRadio.pem type -1
debug1: identity file /Users/deepgc/Dropbox/ft247 management/Hosting/AWS/247HouseRadio.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_6.2
debug1: match: OpenSSH_6.2 pat OpenSSH*
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 6d:d7:d6:26:3b:11:3e:95:a9:c7:74:b5:1c:81:64:e1
debug1: Host '54.191.212.253' is known and matches the RSA host key.
debug1: Found key in /Users/deepgc/.ssh/known_hosts:8
debug1: ssh_rsa_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: Trying private key: /Users/deepgc/Dropbox/ft247 management/Hosting/AWS/247HouseRadio.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).

0 个答案:

没有答案