Reads:70103Replies:4
ssh_exchange_identification: read: Connection reset by peer
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. |
|
1st Reply#
Posted time:Sep 4, 2018 1:39 AM
The key file that you are specifying is not a private key (Key Pair). Double check your command line syntax and the filename that you are using for the Key Pair.
Notice this line in your debug: Not a RSA1 key file acs-hongk.pem This means that they Key Pair is not an PKCS#1 private key, or is formatted in another format such as PKCS#8, etc. The RSA format needs to be PKCS#1 for the SSH program that you are using. Open the acs-hongk.pem file. It should begin with this line. Anything else and it is a different format. -----BEGIN RSA PRIVATE KEY----- |
|
|
2nd Reply#
Posted time:Sep 4, 2018 1:49 AM
@JohnHanley Its a Perfect Answer
|
|
3rd 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. |
|
4Floor#
Posted time:Sep 11, 2018 23:22 PM
You can reset ssh password form the console.
Check first without ssh key in normal mode. ![]() |
|
|