ssh_exchange_identification: read: Connection reset by peer

1,031 views
Skip to first unread message

LIOc COPPE-UFRJ

unread,
Sep 30, 2015, 2:17:38 PM9/30/15
to gce-discussion
I tryed to install any programs in my instance and one of the configurations was to create a public key without password in ssh.
I installed the following programs: java, gcc, icc and ifort (intel), mpich2, wgrib2, netcdf. After, I exit of the instance and when I tryed connect again, receive the following message:
"ssh_exchange_identification: read: Connection reset by peer"
And now:
"ssh: connect to host 104.197.101.25 port 22: Connection refused"
And the output of the ssh is this:
"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 104.197.101.25 [104.197.101.25] port 22.
debug1: connect to address 104.197.101.25 port 22: Connection refused
ssh: connect to host 104.197.101.25 port 22: Connection refused"

Any idea about what is happening?

Faizan (Google Cloud Support)

unread,
Sep 30, 2015, 5:57:32 PM9/30/15
to gce-discussion
Hello,

In order to troubleshot this issue I would recommend going through your instance serial console output to see if you can find anything unusual (e.g sshd not running etc). 

Have you made any changes to /etc/sshd_config ? If yes, you can revert those changes on the disk by attaching your boot disk to a temporary instance. The steps to do so are mentioned on this link under the heading 'Mount your disk on a temporary instance.'

I hope that helps.

Faizan
Reply all
Reply to author
Forward
0 new messages