Facing SFTP issue between Linux and WingFTPserver

Please post here if you have problems in using Wing FTP Server.
Post Reply
kmadinedi
Posts: 1
Joined: Fri May 25, 2012 7:32 am

Facing SFTP issue between Linux and WingFTPserver

Post by kmadinedi »

Hi,

We added Linux server RSA2048 public key to WingFTPserver to communicate from Linux to WingFTPserver. But it's throwing below exception (Read from socket failed: Connection reset by peer). could you please advise what could be the reason?


bash-3.2$ sftp -vvv buckscc_fin1@194.xx.xxx.xxx" rel="nofollow" rel="nofollow
Connecting to 194.xx.xxx.xxx...
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /home/vis/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 194.xx.xxx.xxx [194.xx.xxx.xxx] port 22.
debug1: Connection established.
debug3: Not a RSA1 key file /home/vis/.ssh/id_rsa_2048_comms1.
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/vis/.ssh/id_rsa_2048_comms1 type 1
debug1: loaded 1 keys
debug1: Remote protocol version 2.0, remote software version WingFTPserver
debug1: no match: WingFTPserver
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa
debug2: kex_parse_kexinit: 3des-cbc,blowfish-cbc,cast128-cbc,idea-cbc
debug2: kex_parse_kexinit: 3des-cbc,blowfish-cbc,cast128-cbc,idea-cbc
debug2: kex_parse_kexinit: hmac-sha1,hmac-md5
debug2: kex_parse_kexinit: hmac-sha1,hmac-md5
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: server->client 3des-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client->server 3des-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<2048<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 179/384
debug2: bits set: 980/2048
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: filename /home/vis/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 14
debug1: Host '194.xx.xxx.xxx' is known and matches the RSA host key.
debug1: Found key in /home/vis/.ssh/known_hosts:14
debug2: bits set: 1008/2048
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/vis/.ssh/id_rsa_2048_comms1 (0x2aca78ba8bf0)
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/vis/.ssh/id_rsa_2048_comms1
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug2: input_userauth_pk_ok: SHA1 fp fb:02:77:a7:ec:a0:8f:6f:83:17:6c:ff:3e:c5:4d:9e:d0:5f:50:7b
debug3: sign_and_send_pubkey
debug1: read PEM private key done: type RSA
Read from socket failed: Connection reset by peer
Couldn't read packet: Connection reset by peer
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Facing SFTP issue between Linux and WingFTPserver

Post by FTP »

Hi,

Could you please paste the server's logs? I suggest you remove the comment in the public key file. Just keep a key in it and test again.
mattw2
Posts: 5
Joined: Tue Mar 06, 2012 9:30 am

Re: Facing SFTP issue between Linux and WingFTPserver

Post by mattw2 »

Is it just the domain log or more that you need ?
As I am onsite at the Wing FTP server end in this specific issue, i can provide that information.

From the domain log, each time the connection is attempted all we see is as follows:

[02] Fri, 25 May 2012 09:08:25 (0000013) Connected from 198.xxx.xxx.xxx (local address 192.168.1.48, port 22)
[01] Fri, 25 May 2012 09:08:26 (0000013) SSH session receive user name:buckscc_fin1
[01] Fri, 25 May 2012 09:08:26 (0000013) SSH session receive password of user buckscc_fin1
[02] Fri, 25 May 2012 09:08:26 (0000013) Closed session,disconnected from 198.xxx.xxx.xxx. The reason is:Public key authentication failed.

I can confirm that the public key referred to is in place against the buckscc_fin1 user account.
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Facing SFTP issue between Linux and WingFTPserver

Post by FTP »

Hi,

Could you please send the public key file to us at:support@wftpserver.com
We need to make sure the format can be recorgnized.
Post Reply