Can';将SSH转换为EC2实例

Can';将SSH转换为EC2实例,ssh,amazon-ec2,Ssh,Amazon Ec2,因此,我从网上旋转了我的实例,下载了一个密钥对并安装了它,然后在大约一天的时间里一切都很好。然后我重新启动了我的电脑,我再也不能用SSH连接到它了。我尝试重新下载一个密钥对并重新安装它,但我一直收到权限被拒绝(publickey)错误 这是详细的输出(我也尝试过使用-I/path/to/keypair选项,但没有成功): debug1:读取配置数据/etc/ssh\u config debug1:将选项应用于* debug1:连接到ec2-184-73-218-40.compute-1.amaz

因此,我从网上旋转了我的实例,下载了一个密钥对并安装了它,然后在大约一天的时间里一切都很好。然后我重新启动了我的电脑,我再也不能用SSH连接到它了。我尝试重新下载一个密钥对并重新安装它,但我一直收到权限被拒绝(publickey)错误

这是详细的输出(我也尝试过使用-I/path/to/keypair选项,但没有成功):

debug1:读取配置数据/etc/ssh\u config
debug1:将选项应用于*
debug1:连接到ec2-184-73-218-40.compute-1.amazonaws.com[184.73.218.40]端口22。
debug1:已建立连接。
debug1:identity file/Users/tigger/.ec2/domainpolish类型1
debug1:identity file/Users/tigger/.ec2/domainpolish证书类型-1
debug1:远程协议版本2.0,远程软件版本OpenSSH_5.3p1 Debian-3ubuntu7
debug1:match:OpenSSH_5.3p1 Debian-3ubuntu7 pat OpenSSH*
debug1:启用协议2.0的兼容模式
debug1:本地版本字符串SSH-2.0-OpenSSH_5.6
debug1:SSH2\u MSG\u KEXINIT已发送
debug1:SSH2\u MSG\u KEXINIT已收到
debug1:kex:server->client aes128 ctr hmac-md5无
debug1:kex:客户端->服务器aes128 ctr hmac-md5无

debug1:SSH2_MSG_KEX_DH_GEX_请求(1024已解决。我已从我的计算机中删除了我的AWS密钥对。不要这样做。它将永远将您锁定在您的实例之外。

我会在亚马逊论坛上发布同样的消息:AWS员工有一个大多数用户没有的窍门:他们可以看到发生了什么。&如果你得到答案,请在回答部分报告,这可能会有很大帮助。
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug1: Connecting to ec2-184-73-218-40.compute-1.amazonaws.com [184.73.218.40] port 22.
debug1: Connection established.
debug1: identity file /Users/tigger/.ec2/domainpolish type 1
debug1: identity file /Users/tigger/.ec2/domainpolish-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3p1 Debian-3ubuntu7
debug1: match: OpenSSH_5.3p1 Debian-3ubuntu7 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.6
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: 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: Host 'ec2-184-73-218-40.compute-1.amazonaws.com' is known and matches the RSA host key.
debug1: Found key in /Users/tigger/.ssh/known_hosts:11
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: Offering RSA public key: /Users/tigger/.ec2/domainpolish
debug1: Authentications that can continue: publickey
debug1: Offering RSA public key: domainpolish
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
Permission denied (publickey).