Amazon ec2 无法使用弹性ip通过ssh连接到amazon ec2 ubuntu实例

Amazon ec2 无法使用弹性ip通过ssh连接到amazon ec2 ubuntu实例,amazon-ec2,ssh,Amazon Ec2,Ssh,起初,我能够使用ssh进行连接。 一段时间后,连接被关闭,从此我无法连接。 下面是调试日志。 我能看到的是,连接已经建立,但再次中断 我尝试过重新启动、启动和停止服务器,但没有任何效果。请帮忙 username:coding my.name$ ssh -i "aws_ubuntu_16.pem" ubuntu@xx.xx.xx.xx -vv OpenSSH_7.7p1, LibreSSL 2.7.3 debug1: Reading configuration data /etc/ssh/ssh_

起初,我能够使用ssh进行连接。 一段时间后,连接被关闭,从此我无法连接。 下面是调试日志。 我能看到的是,连接已经建立,但再次中断

我尝试过重新启动、启动和停止服务器,但没有任何效果。请帮忙

username:coding my.name$ ssh -i "aws_ubuntu_16.pem" ubuntu@xx.xx.xx.xx -vv
OpenSSH_7.7p1, LibreSSL 2.7.3
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug2: resolve_canonicalize: hostname xx.xx.xx.xx is address
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to xx.xx.xx.xx [xx.xx.xx.xx] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file aws_ubuntu_16.pem type -1
debug1: key_load_public: No such file or directory
debug1: identity file aws_ubuntu_16.pem-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.7
ssh_exchange_identification: read: Connection reset by peer
  • 方法1:这个问题最可能的原因是 你的IP一定被列入黑名单了。你能检查一下吗 你的弹性IP被列入黑名单。如果是,请将其列入白名单并尝试ssh 再一次。您可以使用“”检查黑名单 并再次将其列入白名单
  • 方法2:不推荐,但您可以尝试更改弹性IP 如果问题仍然存在