Nilesh
Intern
Intern
  • UID6201
  • Fans1
  • Follows0
  • Posts2
Reads:70211Replies:4

ssh_exchange_identification: read: Connection reset by peer

Created#
More Posted time:Sep 3, 2018 18:43 PM
Hi,
I am getting connection reset by peer error while performing ssh to instance hosted in hong kong region. WHere as I am able to login on instance in other region and from there I am able to login on the instance on which I am unable to login using same key.

Error:
debug1: Connection established.
debug3: Not a RSA1 key file acs-hongk.pem.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype

Appreciate any kind of help.
Thank you.

Nilesh
Intern
Intern
  • UID6201
  • Fans1
  • Follows0
  • Posts2
1st Reply#
Posted time:Sep 4, 2018 16:56 PM
JohnHanley:The key file that you are specifying is not a private key (Key Pair). Double check your command line syntax and the file...回到原帖
Thanks for your inputs @JohnHanley
Key file has -----BEGIN RSA PRIVATE KEY----- line
Just for your information,
Using same key file I am able to login from other instances to the instance on which I am unable to login from my network.
Guest