Linux 无法连接到我的aws ec2实例

Linux 无法连接到我的aws ec2实例,linux,amazon-web-services,ssh,amazon-ec2,ssh-keys,Linux,Amazon Web Services,Ssh,Amazon Ec2,Ssh Keys,我面临“ssh\u交换\u标识:读取:由对等方重置连接”错误。我上一次的会议异常地结束了。现在我无法连接到我的实例 非常感谢您的帮助。多谢各位 下面是调试信息 ssh -i "aws/githubapi.pem" ubuntu@52.26.94.220 -vv OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_c

我面临“ssh\u交换\u标识:读取:由对等方重置连接”错误。我上一次的会议异常地结束了。现在我无法连接到我的实例

非常感谢您的帮助。多谢各位

下面是调试信息

ssh -i "aws/githubapi.pem" ubuntu@52.26.94.220 -vv

OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 52.26.94.220 http://52.26.94.220 port 22.
debug1: Connection established.
debug1: identity file aws/githubapi.pem type -1
debug1: identity file aws/githubapi.pem-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
ssh_exchange_identification: read: Connection reset by peer
更多信息:

ssh -v ubuntu@54.148.82.122

OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 54.148.82.122 [54.148.82.122] port 22.
debug1: Connection established.
debug1: identity file /home/moiz/.ssh/id_rsa type -1
debug1: identity file /home/moiz/.ssh/id_rsa-cert type -1
debug1: identity file /home/moiz/.ssh/id_dsa type -1
debug1: identity file /home/moiz/.ssh/id_dsa-cert type -1
debug1: identity file /home/moiz/.ssh/id_ecdsa type -1
debug1: identity file /home/moiz/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/moiz/.ssh/id_ed25519 type -1
debug1: identity file /home/moiz/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
ssh_exchange_identification: read: Connection reset by peer

我的intranet防火墙阻止我发送ssh请求。

我的intranet防火墙阻止我发送ssh请求。

您是否更改了sshd配置或删除了.ssh文件夹中的任何内容。如果无法访问,请重新启动计算机并重试。@AmalGJose是的,我已经编辑了sshd_配置文件,但现在我已将其还原,并重新启动了本地和远程计算机。但它仍然不工作。您是否对sshd配置进行了任何更改或删除了.ssh文件夹中的任何内容。如果无法访问,请重新启动计算机并重试。@AmalGJose是的,我已经编辑了sshd_配置文件,但现在我已将其还原,并重新启动了本地和远程计算机。但它仍然不起作用。