linux - 无法连接到我的 aws ec2 实例

标签 linux amazon-web-services ssh amazon-ec2 ssh-keys

我面临“ssh_exchange_identification:读取:连接被对等方重置”错误。我之前的 session 异常关闭。现在我无法连接到我的实例。

非常感谢任何帮助。谢谢。

下面是调试信息

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 请求。

关于linux - 无法连接到我的 aws ec2 实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31683931/

相关文章:

c++ - Qt 中的日期时间

android - 在 Android 应用程序中使用 Amazon RDS

python - 如何在 AWS Elastic Beanstalk 或 Google App Engine 上使用未安装 pip 的 Python 库?

sql - 在 AWS Athena 中添加截止日期列

git - 怎么解决这个问题呢? ssh : connect to host github. com 端口 22:连接超时致命

php - 如何通过 Mac 的终端将公共(public) ssh key 添加到我的 DigitalOcean Droplet?

c++ - 为什么我的字典(c++ trie)中没有包含这些词?

c++ - 如何在linux中重复一个进程(或设置一段进程)?

git - 如何通过 SSH 创建远程仓库?

PHP Curl 错误 35 - 同行报告不兼容或不受支持的协议(protocol)版本