首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >EC2 SSH连接断开管道;无法重新连接

EC2 SSH连接断开管道;无法重新连接
EN

Stack Overflow用户
提问于 2019-05-27 20:50:21
回答 3查看 715关注 0票数 -1

我成功地连接到一个EC2实例,如下所示:

代码语言:javascript
复制
ssh -i .ssh/ec2docker.cer user@SOMEIP

在使用这个实例大约一个小时后,我离开了,再回来两个小时:

代码语言:javascript
复制
$ packet_write_wait: Connection to xx port 22: Broken pipe

现在,当尝试连接时,什么也没有发生:

代码语言:javascript
复制
OpenSSH_7.9p1, OpenSSL 1.1.1b FIPS  26 Feb 2019
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: /etc/ssh/ssh_config line 52: Including file /etc/ssh/ssh_config.d/05-redhat.conf depth 0
debug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf
debug2: checking match for 'final all' host xxx originally xxx
debug3: /etc/ssh/ssh_config.d/05-redhat.conf line 3: not matched 'final'
debug2: match not found
debug3: /etc/ssh/ssh_config.d/05-redhat.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config depth 1 (parse only)
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug3: gss kex names ok: [gss-gex-sha1-,gss-group14-sha1-,gss-group1-sha1-]
debug3: kex names ok: [curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1]
debug1: configuration requests final Match pass
debug1: re-parsing configuration
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: /etc/ssh/ssh_config line 52: Including file /etc/ssh/ssh_config.d/05-redhat.conf depth 0
debug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf
debug2: checking match for 'final all' host xxx originally xxx
debug3: /etc/ssh/ssh_config.d/05-redhat.conf line 3: matched 'final'
debug2: match found
debug3: /etc/ssh/ssh_config.d/05-redhat.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config depth 1
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug3: gss kex names ok: [gss-gex-sha1-,gss-group14-sha1-,gss-group1-sha1-]
debug3: kex names ok: [curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1]
debug2: resolving "xxxx" port 22
debug2: ssh_connect_direct
debug1: Connecting to xxx [xx] port 22.
debug1: Connection established.
debug1: identity file .ssh/ec2docker.cer type -1
debug1: identity file .ssh/ec2docker.cer-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.9

ssh不会终止,也不会出现错误。EC2监视器显示实例正在以非零的CPU使用率(大约25%)和非零的网络读写运行。

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2019-05-29 01:20:41

这个问题的原因是我正在启动的应用程序中的内存泄漏;它阻塞了整个EC2实例。

票数 0
EN

Stack Overflow用户

发布于 2019-05-28 01:57:32

你有没有在亚马逊网站查看过你的EC2的公网ip?

这看起来像是重新启动,如果你没有和“弹性IP",现在你有一个新的公网ip。

票数 0
EN

Stack Overflow用户

发布于 2019-05-28 02:22:05

管道断开意味着连接丢失

1)点击EC2- Instance 2)点击connect 3)使用命令连接,它应该可以工作

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56326474

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档