0
1
I have created keygen and public key I have copied to the remote host. First day it worked fine without any issue, I could transfer the files from my host to remote host with out prompting me for password. Next day during the batch sftp jobs failed and i tried manually connecting to remote host. It is throwing me this particular error:
[user@uat-try-app dbconfig]$ ssh 'P4UAT@192.168.248.30' Read from socket failed: Connection reset by peer
I am unable to understand where the issue is exactly.
If i do ssh -v on remote host i get below details.
[murex@uat-try-app ssh]$ ssh -vvv 'P4UAT@192.168.248.30'
OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for * debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.248.30 [192.168.248.30] port 22.
debug1: Connection established.
debug1: identity file /home/murex/.ssh/identity type -1
debug3: Not a RSA1 key file /home/murex/.ssh/id_rsa.
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
debug1: identity file /home/murex/.ssh/id_rsa type 1
debug1: identity file /home/murex/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug3: Wrote 792 bytes for a total of 813
Kindly please help me in resolving this.
Regards, Ram
Isn't it obvious? debug3: Not a RSA1 key file /home/murex/.ssh/id_rsa.. Whatever you have there is not a cryptographic key. – MariusMatutiae – 2015-12-01T06:46:56.100
Hi Marius, You want me to create new public private key ? – Ram – 2015-12-01T07:04:02.533
Have a look on the server logs. It should give you some clue about the problem. – Jakuje – 2015-12-01T07:53:36.250