Obtendo o erro: ssh_exchange_identification: read: Conexão redefinida pelo peer no Ubuntu no Amazon AWS

0

Estou usando o Ubuntu e desenvolvendo o site usando o cakephp3 e hospedando-o em uma instância do Amazon AWS. Antes tudo estava funcionando bem, mas agora, ao conectar a AWS através do terminal, ele apresenta este erro: ssh_exchange_identification: read: Connection reset by peer , que também não consegue se conectar ao FTP do FileZilla, recebendo Error: Could not connect to server .

Eu verifiquei em ssh -v no terminal do sistema sua saída abaixo:

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 35.161.172.14 [35.161.172.14] port 22.
debug1: Connection established.
debug1: identity file /home/user/.ssh/id_rsa type -1
debug1: identity file /home/user/.ssh/id_rsa-cert type -1
debug1: identity file /home/user/.ssh/id_dsa type -1
debug1: identity file /home/user/.ssh/id_dsa-cert type -1
debug1: identity file /home/user/.ssh/id_ecdsa type -1
debug1: identity file /home/user/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/user/.ssh/id_ed25519 type -1
debug1: identity file /home/user/.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.4
ssh_exchange_identification: Connection closed by remote host

 * Starting Signal sysvinit that local filesystems are mounted[74G[ OK ]
 * Stopping Mount filesystems on boot[74G[ OK ]
 * Starting flush early job output to logs[74G[ OK ]
 * Stopping Failsafe Boot Delay[74G[ OK ]
 * Starting System V initialisation compatibility[74G[ OK ]
 * Starting D-Bus system message bus[74G[ OK ]
 * Stopping flush early job output to logs[74G[ OK ]
 * Starting SystemD login management service[74G[ OK ]
 * Starting system logging daemon[74G[ OK ]
 * Starting Handle applying cloud-config[74G[ OK ]
 * Starting Bridge file events into upstart[74G[ OK ]
 * Starting early crypto disks...       [80G 
[74G[ OK ]
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
 * Stopping cold plug devices[74G[ OK ]
 * Stopping log initial device creation[74G[ OK ]
 * Starting configure network device security[74G[ OK ]
 * Starting enable remaining boot-time encrypted block devices[74G[ OK ]
 * Starting configure virtual network devices[74G[ OK ]
 * Starting Seed the pseudo random number generator on first boot[74G[ OK ]
 * Stopping Seed the pseudo random number generator on first boot[74G[ OK ]
 * Starting AppArmor profiles       [80G 
[74G[ OK ]
 * Stopping System V initialisation compatibility[74G[ OK ]
 * Starting System V runlevel compatibility[74G[ OK ]
 * Starting ACPI daemon[74G[ OK ]
 * Starting save kernel messages[74G[ OK ]
 * Starting OpenSSH server[74G[ OK ]
 * Starting regular background program processing daemon[74G[ OK ]
 * Starting deferred execution scheduler[74G[ OK ]
 * Stopping save kernel messages[74G[ OK ]
Cloud-init v. 0.7.5 running 'modules:config' at Fri, 28 Apr 2017 11:48:30 +0000. Up 7.88 seconds.
 * Stopping CPU interrupts balancing daemon[74G[ OK ]
 * Starting automatic crash report generation[74G[ OK ]
 * Stopping Handle applying cloud-config[74G[ OK ]
/etc/mail/sendmail.cf: WARNING: dangerous write permissions
451 4.0.0 /etc/mail/sendmail.cf: line 100: fileclass: cannot open '/etc/mail/local-host-names': World writable directory
 * Starting Mail Transport Agent (MTA) sendmail       [80G 
[74G[ OK ]
open-vm-tools: not starting as this is not a VMware VM
landscape-client is not configured, please run landscape-config.
 * Restoring resolver state...       [80G 
[74G[ OK ]
 * Stopping System V runlevel compatibility[74G[ OK ]
Cloud-init v. 0.7.5 running 'modules:final' at Fri, 28 Apr 2017 11:48:34 +0000. Up 11.87 seconds.
Cloud-init v. 0.7.5 finished at Fri, 28 Apr 2017 11:48:34 +0000. Datasource DataSourceEc2.  Up 11.93 seconds

Ubuntu 14.04.4 LTS ip-172-31-27-1 ttyS0
ip-172-31-27-1 login:

i again checked -vvv verbose command after reading some articles and got the logs -

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 ec2-35-161-172-14.us-west-2.compute.amazonaws.com [35.161.172.14] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "vod-key-pair.pem" as a RSA1 public key
debug1: identity file vod-key-pair.pem type -1
debug1: identity file vod-key-pair.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.8
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7
debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7 pat OpenSSH_6.6.1* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug3: load_hostkeys: loading entries for host "ec2-35-161-172-14.us-west-2.compute.amazonaws.com" from file "/home/user/.ssh/known_hosts"
debug3: load_hostkeys: loaded 0 keys
debug1: SSH2_MSG_KEXINIT sent
Connection closed by 35.161.172.14
    
por letrocks 28.04.2017 / 11:21

0 respostas