Discussion:
[JSch-users] SFTP of large file hangs
Vikas Verma
2016-09-14 15:43:16 UTC
Permalink
We are having a strange issue with one of our clients (Client hosts the SFTP server. We are the client using JSCH). When we SFTP a large file to their SFTP server the file stops getting uploaded after exactly 2143990632 bytes. The JSCH connection just starts over at that point. I am including the logs. Has anyone seen this behavior before? I can use any other SFTP client with that server and they work.

In the logs you will see that after my custom log prints (3 and 4) it starts putting the file. After sending 2143990632 bytes it kind of starts over and the highlighted log shows up. The file at that point does not "grow" in size on the server side.

Help truly appreciated !!

Thanks,
Vikas.


INFO: Connecting to xxx.xxx.xxx.xx port 22
INFO: Connection established
INFO: Remote version string: SSH-2.0-mod_sftp/0.9.7
INFO: Local version string: SSH-2.0-JSCH-0.1.53
INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
INFO: aes256-ctr is not available.
INFO: aes192-ctr is not available.
INFO: aes256-cbc is not available.
INFO: aes192-cbc is not available.
INFO: CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: SSH_MSG_KEXINIT sent
INFO: SSH_MSG_KEXINIT received
INFO: kex: server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
INFO: kex: server: ssh-rsa,ssh-dss
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: ***@openssh.com,zlib,none
INFO: kex: server: ***@openssh.com,zlib,none
INFO: kex: server:
INFO: kex: server:
INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: none
INFO: kex: client: none
INFO: kex: client:
INFO: kex: client:
INFO: kex: server->client aes128-ctr hmac-md5 none
INFO: kex: client->server aes128-ctr hmac-md5 none
INFO: SSH_MSG_KEXDH_INIT sent
INFO: expecting SSH_MSG_KEXDH_REPLY
INFO: ssh_rsa_verify: signature true
WARN: Permanently added 'xxx.xxx.xxx.xx' (RSA) to the list of known hosts.
INFO: SSH_MSG_NEWKEYS sent
INFO: SSH_MSG_NEWKEYS received
INFO: SSH_MSG_SERVICE_REQUEST sent
INFO: SSH_MSG_SERVICE_ACCEPT received
INFO: Authentications that can continue: publickey,keyboard-interactive,password
INFO: Next authentication method: publickey
INFO: Authentications that can continue: password
INFO: Next authentication method: password
INFO: Authentication succeeded (password).
-----------------------------------3
-----------------------------------4
INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
INFO: aes256-ctr is not available.
INFO: aes192-ctr is not available.
INFO: aes256-cbc is not available.
INFO: aes192-cbc is not available.
INFO: CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: SSH_MSG_KEXINIT sent
INFO: kex: server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
INFO: kex: server: ssh-rsa,ssh-dss
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: ***@openssh.com,zlib,none
INFO: kex: server: ***@openssh.com,zlib,none
INFO: kex: server:
INFO: kex: server:
INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: none
INFO: kex: client: none
INFO: kex: client:
INFO: kex: client:
INFO: kex: server->client aes128-ctr hmac-md5 none
INFO: kex: client->server aes128-ctr hmac-md5 none
INFO: SSH_MSG_KEXDH_INIT sent
INFO: expecting SSH_MSG_KEXDH_REPLY
INFO: ssh_rsa_verify: signature true
Vikas Verma
2016-10-03 19:19:30 UTC
Permalink
Can anyone please help? The SFTP server is proftpd. This looks like an old Rekeying problem between Proftpd and Jsch. I have tried JSCH version 50/51 and 54 with no luck.


Thanks,

Vikas.

________________________________
From: Vikas Verma <***@hotmail.com>
Sent: Wednesday, September 14, 2016 11:43:16 AM
To: jsch-***@lists.sourceforge.net
Subject: SFTP of large file hangs


We are having a strange issue with one of our clients (Client hosts the SFTP server. We are the client using JSCH). When we SFTP a large file to their SFTP server the file stops getting uploaded after exactly 2143990632 bytes. The JSCH connection just starts over at that point. I am including the logs. Has anyone seen this behavior before? I can use any other SFTP client with that server and they work.

In the logs you will see that after my custom log prints (3 and 4) it starts putting the file. After sending 2143990632 bytes it kind of starts over and the highlighted log shows up. The file at that point does not "grow" in size on the server side.

Help truly appreciated !!

Thanks,
Vikas.


INFO: Connecting to xxx.xxx.xxx.xx port 22
INFO: Connection established
INFO: Remote version string: SSH-2.0-mod_sftp/0.9.7
INFO: Local version string: SSH-2.0-JSCH-0.1.53
INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
INFO: aes256-ctr is not available.
INFO: aes192-ctr is not available.
INFO: aes256-cbc is not available.
INFO: aes192-cbc is not available.
INFO: CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: SSH_MSG_KEXINIT sent
INFO: SSH_MSG_KEXINIT received
INFO: kex: server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
INFO: kex: server: ssh-rsa,ssh-dss
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: ***@openssh.com,zlib,none
INFO: kex: server: ***@openssh.com,zlib,none
INFO: kex: server:
INFO: kex: server:
INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: none
INFO: kex: client: none
INFO: kex: client:
INFO: kex: client:
INFO: kex: server->client aes128-ctr hmac-md5 none
INFO: kex: client->server aes128-ctr hmac-md5 none
INFO: SSH_MSG_KEXDH_INIT sent
INFO: expecting SSH_MSG_KEXDH_REPLY
INFO: ssh_rsa_verify: signature true
WARN: Permanently added 'xxx.xxx.xxx.xx' (RSA) to the list of known hosts.
INFO: SSH_MSG_NEWKEYS sent
INFO: SSH_MSG_NEWKEYS received
INFO: SSH_MSG_SERVICE_REQUEST sent
INFO: SSH_MSG_SERVICE_ACCEPT received
INFO: Authentications that can continue: publickey,keyboard-interactive,password
INFO: Next authentication method: publickey
INFO: Authentications that can continue: password
INFO: Next authentication method: password
INFO: Authentication succeeded (password).
-----------------------------------3
-----------------------------------4
INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
INFO: aes256-ctr is not available.
INFO: aes192-ctr is not available.
INFO: aes256-cbc is not available.
INFO: aes192-cbc is not available.
INFO: CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: SSH_MSG_KEXINIT sent
INFO: kex: server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
INFO: kex: server: ssh-rsa,ssh-dss
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: ***@openssh.com,zlib,none
INFO: kex: server: ***@openssh.com,zlib,none
INFO: kex: server:
INFO: kex: server:
INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: none
INFO: kex: client: none
INFO: kex: client:
INFO: kex: client:
INFO: kex: server->client aes128-ctr hmac-md5 none
INFO: kex: client->server aes128-ctr hmac-md5 none
INFO: SSH_MSG_KEXDH_INIT sent
INFO: expecting SSH_MSG_KEXDH_REPLY
INFO: ssh_rsa_verify: signature true
Lothar Kimmeringer
2016-10-05 11:34:24 UTC
Permalink
Hi,

Am 03.10.2016 um 21:19 schrieb Vikas Verma:
> Can anyone please help? The SFTP server is proftpd. This looks like an old
> Rekeying problem between Proftpd and Jsch. I have tried JSCH version 50/51
> and 54 with no luck.

if time permits (it currently isn't) I can try to reproduce it here, but
this isn't a general problem since I know of one user here who is transfering
DVD-images via JSCH from one server to the other, so if there were a problem
that is always ocurring I'd know of it already.

Is proftpd on the other side able to log more than nothing? Maybe you
can see something popping up that might help.


Cheers, Lothar
Alan Ezust
2016-10-05 15:00:44 UTC
Permalink
Just wondering, is the client running jsch also running a 64 bit version of
Java?


On Mon, Oct 3, 2016 at 12:19 PM, Vikas Verma <***@hotmail.com> wrote:

> Can anyone please help? The SFTP server is proftpd. This looks like an
> old Rekeying problem between Proftpd and Jsch. I have tried JSCH version
> 50/51 and 54 with no luck.
>
>
> Thanks,
>
> Vikas.
> ------------------------------
> *From:* Vikas Verma <***@hotmail.com>
> *Sent:* Wednesday, September 14, 2016 11:43:16 AM
> *To:* jsch-***@lists.sourceforge.net
> *Subject:* SFTP of large file hangs
>
>
> We are having a strange issue with one of our clients (Client hosts the
> SFTP server. We are the client using JSCH). When we SFTP a large file to
> their SFTP server the file stops getting uploaded after exactly 2143990632
> bytes. The JSCH connection just starts over at that point. I am including
> the logs. Has anyone seen this behavior before? I can use any other SFTP
> client with that server and they work.
>
> In the logs you will see that after my custom log prints (3 and 4) it
> starts putting the file. After sending 2143990632 bytes it kind of starts
> over and the highlighted log shows up. The file at that point does not
> "grow" in size on the server side.
>
> Help truly appreciated !!
>
> Thanks,
> Vikas.
>
>
> INFO: Connecting to xxx.xxx.xxx.xx port 22
> INFO: Connection established
> INFO: Remote version string: SSH-2.0-mod_sftp/0.9.7
> INFO: Local version string: SSH-2.0-JSCH-0.1.53
> INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-
> ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,
> arcfour128,arcfour256
> INFO: aes256-ctr is not available.
> INFO: aes192-ctr is not available.
> INFO: aes256-cbc is not available.
> INFO: aes192-cbc is not available.
> INFO: CheckKexes: diffie-hellman-group14-sha1,
> ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
> INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-
> nistp521
> INFO: SSH_MSG_KEXINIT sent
> INFO: SSH_MSG_KEXINIT received
> INFO: kex: server: diffie-hellman-group-exchange-
> sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-
> group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
> INFO: kex: server: ssh-rsa,ssh-dss
> INFO: kex: server: aes256-ctr,aes192-ctr,aes128-
> ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,
> arcfour256,arcfour128,3des-ctr,3des-cbc
> INFO: kex: server: aes256-ctr,aes192-ctr,aes128-
> ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,
> arcfour256,arcfour128,3des-ctr,3des-cbc
> INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-
> md5,hmac-md5-96,hmac-ripemd160
> INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-
> md5,hmac-md5-96,hmac-ripemd160
> INFO: kex: server: ***@openssh.com,zlib,none
> INFO: kex: server: ***@openssh.com,zlib,none
> INFO: kex: server:
> INFO: kex: server:
> INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-
> nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,
> diffie-hellman-group-exchange-sha256,diffie-hellman-group-
> exchange-sha1,diffie-hellman-group1-sha1
> INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-
> nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
> INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
> INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
> INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-
> 256,hmac-sha1-96,hmac-md5-96
> INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-
> 256,hmac-sha1-96,hmac-md5-96
> INFO: kex: client: none
> INFO: kex: client: none
> INFO: kex: client:
> INFO: kex: client:
> INFO: kex: server->client aes128-ctr hmac-md5 none
> INFO: kex: client->server aes128-ctr hmac-md5 none
> INFO: SSH_MSG_KEXDH_INIT sent
> INFO: expecting SSH_MSG_KEXDH_REPLY
> INFO: ssh_rsa_verify: signature true
> WARN: Permanently added 'xxx.xxx.xxx.xx' (RSA) to the list of known hosts.
> INFO: SSH_MSG_NEWKEYS sent
> INFO: SSH_MSG_NEWKEYS received
> INFO: SSH_MSG_SERVICE_REQUEST sent
> INFO: SSH_MSG_SERVICE_ACCEPT received
> INFO: Authentications that can continue: publickey,keyboard-
> interactive,password
> INFO: Next authentication method: publickey
> INFO: Authentications that can continue: password
> INFO: Next authentication method: password
> INFO: Authentication succeeded (password).
> -----------------------------------3
> -----------------------------------4
> INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-
> ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,
> arcfour128,arcfour256
> INFO: aes256-ctr is not available.
> INFO: aes192-ctr is not available.
> INFO: aes256-cbc is not available.
> INFO: aes192-cbc is not available.
> INFO: CheckKexes: diffie-hellman-group14-sha1,
> ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
> INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-
> nistp521
> INFO: SSH_MSG_KEXINIT sent
> INFO: kex: server: diffie-hellman-group-exchange-
> sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-
> group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
> INFO: kex: server: ssh-rsa,ssh-dss
> INFO: kex: server: aes256-ctr,aes192-ctr,aes128-
> ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,
> arcfour256,arcfour128,3des-ctr,3des-cbc
> INFO: kex: server: aes256-ctr,aes192-ctr,aes128-
> ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,
> arcfour256,arcfour128,3des-ctr,3des-cbc
> INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-
> md5,hmac-md5-96,hmac-ripemd160
> INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-
> md5,hmac-md5-96,hmac-ripemd160
> INFO: kex: server: ***@openssh.com,zlib,none
> INFO: kex: server: ***@openssh.com,zlib,none
> INFO: kex: server:
> INFO: kex: server:
> INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-
> nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,
> diffie-hellman-group-exchange-sha256,diffie-hellman-group-
> exchange-sha1,diffie-hellman-group1-sha1
> INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-
> nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
> INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
> INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
> INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-
> 256,hmac-sha1-96,hmac-md5-96
> INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-
> 256,hmac-sha1-96,hmac-md5-96
> INFO: kex: client: none
> INFO: kex: client: none
> INFO: kex: client:
> INFO: kex: client:
> INFO: kex: server->client aes128-ctr hmac-md5 none
> INFO: kex: client->server aes128-ctr hmac-md5 none
> INFO: SSH_MSG_KEXDH_INIT sent
> INFO: expecting SSH_MSG_KEXDH_REPLY
> INFO: ssh_rsa_verify: signature true
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> JSch-users mailing list
> JSch-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jsch-users
>
>
Vikas Verma
2016-10-05 15:40:47 UTC
Permalink
@Alan --> Yes its running 64 bit.

@Lothar --> The problem is just between Proftpd and JSCH. I am able to transfer huge files (> 4gb) to other SFTP servers from JSCH. And Proftpd works fine with other ssh clients (like the one that comes with linux). I am not sure sure about their (Partner that hosts sftp server) logging. I can reach out and ask. But their support isnt that great.


Thanks,

Vikas.

________________________________
From: Alan Ezust <***@gmail.com>
Sent: Wednesday, October 5, 2016 11:00:44 AM
To: Vikas Verma
Cc: jsch-***@lists.sourceforge.net
Subject: Re: [JSch-users] SFTP of large file hangs

Just wondering, is the client running jsch also running a 64 bit version of Java?


On Mon, Oct 3, 2016 at 12:19 PM, Vikas Verma <***@hotmail.com<mailto:***@hotmail.com>> wrote:

Can anyone please help? The SFTP server is proftpd. This looks like an old Rekeying problem between Proftpd and Jsch. I have tried JSCH version 50/51 and 54 with no luck.


Thanks,

Vikas.

________________________________
From: Vikas Verma <***@hotmail.com<mailto:***@hotmail.com>>
Sent: Wednesday, September 14, 2016 11:43:16 AM
To: jsch-***@lists.sourceforge.net<mailto:jsch-***@lists.sourceforge.net>
Subject: SFTP of large file hangs


We are having a strange issue with one of our clients (Client hosts the SFTP server. We are the client using JSCH). When we SFTP a large file to their SFTP server the file stops getting uploaded after exactly 2143990632<tel:2143990632> bytes. The JSCH connection just starts over at that point. I am including the logs. Has anyone seen this behavior before? I can use any other SFTP client with that server and they work.

In the logs you will see that after my custom log prints (3 and 4) it starts putting the file. After sending 2143990632<tel:2143990632> bytes it kind of starts over and the highlighted log shows up. The file at that point does not "grow" in size on the server side.

Help truly appreciated !!

Thanks,
Vikas.


INFO: Connecting to xxx.xxx.xxx.xx port 22
INFO: Connection established
INFO: Remote version string: SSH-2.0-mod_sftp/0.9.7
INFO: Local version string: SSH-2.0-JSCH-0.1.53
INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
INFO: aes256-ctr is not available.
INFO: aes192-ctr is not available.
INFO: aes256-cbc is not available.
INFO: aes192-cbc is not available.
INFO: CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: SSH_MSG_KEXINIT sent
INFO: SSH_MSG_KEXINIT received
INFO: kex: server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
INFO: kex: server: ssh-rsa,ssh-dss
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server:
INFO: kex: server:
INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: none
INFO: kex: client: none
INFO: kex: client:
INFO: kex: client:
INFO: kex: server->client aes128-ctr hmac-md5 none
INFO: kex: client->server aes128-ctr hmac-md5 none
INFO: SSH_MSG_KEXDH_INIT sent
INFO: expecting SSH_MSG_KEXDH_REPLY
INFO: ssh_rsa_verify: signature true
WARN: Permanently added 'xxx.xxx.xxx.xx' (RSA) to the list of known hosts.
INFO: SSH_MSG_NEWKEYS sent
INFO: SSH_MSG_NEWKEYS received
INFO: SSH_MSG_SERVICE_REQUEST sent
INFO: SSH_MSG_SERVICE_ACCEPT received
INFO: Authentications that can continue: publickey,keyboard-interactive,password
INFO: Next authentication method: publickey
INFO: Authentications that can continue: password
INFO: Next authentication method: password
INFO: Authentication succeeded (password).
-----------------------------------3
-----------------------------------4
INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
INFO: aes256-ctr is not available.
INFO: aes192-ctr is not available.
INFO: aes256-cbc is not available.
INFO: aes192-cbc is not available.
INFO: CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: SSH_MSG_KEXINIT sent
INFO: kex: server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
INFO: kex: server: ssh-rsa,ssh-dss
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server:
INFO: kex: server:
INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: none
INFO: kex: client: none
INFO: kex: client:
INFO: kex: client:
INFO: kex: server->client aes128-ctr hmac-md5 none
INFO: kex: client->server aes128-ctr hmac-md5 none
INFO: SSH_MSG_KEXDH_INIT sent
INFO: expecting SSH_MSG_KEXDH_REPLY
INFO: ssh_rsa_verify: signature true
Alan Ezust
2016-10-10 16:09:15 UTC
Permalink
Another guess: investigate what the startup command line options are for
java on the system in question.
Is the max heap size limited with an -Xmx option? Or is there a -d32 being
passed in?



On Mon, Oct 10, 2016 at 8:26 AM, Vikas Verma <***@hotmail.com> wrote:

> I was able to reproduce this in our local environment. We were able to
> setup ProFTPD SFTP server with default settings. After transferring about
> 2GB of data (using jsch) the transfer stops. I am attaching the ProFTPD
> logs for reference. Please help.
>
>
> Thanks,
>
> Vikas.
> ------------------------------
> *From:* Vikas Verma <***@hotmail.com>
> *Sent:* Wednesday, October 5, 2016 11:40:47 AM
> *To:* Alan Ezust
>
> *Cc:* jsch-***@lists.sourceforge.net
> *Subject:* Re: [JSch-users] SFTP of large file hangs
>
>
> @Alan --> Yes its running 64 bit.
>
> @Lothar --> The problem is just between Proftpd and JSCH. I am able to
> transfer huge files (> 4gb) to other SFTP servers from JSCH. And Proftpd
> works fine with other ssh clients (like the one that comes with linux). I
> am not sure sure about their (Partner that hosts sftp server) logging. I
> can reach out and ask. But their support isnt that great.
>
>
> Thanks,
>
> Vikas.
> ------------------------------
> *From:* Alan Ezust <***@gmail.com>
> *Sent:* Wednesday, October 5, 2016 11:00:44 AM
> *To:* Vikas Verma
> *Cc:* jsch-***@lists.sourceforge.net
> *Subject:* Re: [JSch-users] SFTP of large file hangs
>
> Just wondering, is the client running jsch also running a 64 bit version
> of Java?
>
>
> On Mon, Oct 3, 2016 at 12:19 PM, Vikas Verma <***@hotmail.com> wrote:
>
>> Can anyone please help? The SFTP server is proftpd. This looks like an
>> old Rekeying problem between Proftpd and Jsch. I have tried JSCH version
>> 50/51 and 54 with no luck.
>>
>>
>> Thanks,
>>
>> Vikas.
>> ------------------------------
>> *From:* Vikas Verma <***@hotmail.com>
>> *Sent:* Wednesday, September 14, 2016 11:43:16 AM
>> *To:* jsch-***@lists.sourceforge.net
>> *Subject:* SFTP of large file hangs
>>
>>
>> We are having a strange issue with one of our clients (Client hosts the
>> SFTP server. We are the client using JSCH). When we SFTP a large file to
>> their SFTP server the file stops getting uploaded after exactly
>> 2143990632 bytes. The JSCH connection just starts over at that point. I
>> am including the logs. Has anyone seen this behavior before? I can use any
>> other SFTP client with that server and they work.
>>
>> In the logs you will see that after my custom log prints (3 and 4) it
>> starts putting the file. After sending 2143990632 bytes it kind of
>> starts over and the highlighted log shows up. The file at that point does
>> not "grow" in size on the server side.
>>
>> Help truly appreciated !!
>>
>> Thanks,
>> Vikas.
>>
>>
>> INFO: Connecting to xxx.xxx.xxx.xx port 22
>> INFO: Connection established
>> INFO: Remote version string: SSH-2.0-mod_sftp/0.9.7
>> INFO: Local version string: SSH-2.0-JSCH-0.1.53
>> INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-c
>> tr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour
>> 128,arcfour256
>> INFO: aes256-ctr is not available.
>> INFO: aes192-ctr is not available.
>> INFO: aes256-cbc is not available.
>> INFO: aes192-cbc is not available.
>> INFO: CheckKexes: diffie-hellman-group14-sha1,ec
>> dh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
>> INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2
>> -nistp384,ecdsa-sha2-nistp521
>> INFO: SSH_MSG_KEXINIT sent
>> INFO: SSH_MSG_KEXINIT received
>> INFO: kex: server: diffie-hellman-group-exchange-
>> sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-gro
>> up14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
>> INFO: kex: server: ssh-rsa,ssh-dss
>> INFO: kex: server: aes256-ctr,aes192-ctr,aes128-c
>> tr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour2
>> 56,arcfour128,3des-ctr,3des-cbc
>> INFO: kex: server: aes256-ctr,aes192-ctr,aes128-c
>> tr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour2
>> 56,arcfour128,3des-ctr,3des-cbc
>> INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md
>> 5,hmac-md5-96,hmac-ripemd160
>> INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md
>> 5,hmac-md5-96,hmac-ripemd160
>> INFO: kex: server: ***@openssh.com,zlib,none
>> INFO: kex: server: ***@openssh.com,zlib,none
>> INFO: kex: server:
>> INFO: kex: server:
>> INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-n
>> istp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffi
>> e-hellman-group-exchange-sha256,diffie-hellman-group-exchang
>> e-sha1,diffie-hellman-group1-sha1
>> INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nis
>> tp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
>> INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
>> INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
>> INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-2
>> 56,hmac-sha1-96,hmac-md5-96
>> INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-2
>> 56,hmac-sha1-96,hmac-md5-96
>> INFO: kex: client: none
>> INFO: kex: client: none
>> INFO: kex: client:
>> INFO: kex: client:
>> INFO: kex: server->client aes128-ctr hmac-md5 none
>> INFO: kex: client->server aes128-ctr hmac-md5 none
>> INFO: SSH_MSG_KEXDH_INIT sent
>> INFO: expecting SSH_MSG_KEXDH_REPLY
>> INFO: ssh_rsa_verify: signature true
>> WARN: Permanently added 'xxx.xxx.xxx.xx' (RSA) to the list of known hosts.
>> INFO: SSH_MSG_NEWKEYS sent
>> INFO: SSH_MSG_NEWKEYS received
>> INFO: SSH_MSG_SERVICE_REQUEST sent
>> INFO: SSH_MSG_SERVICE_ACCEPT received
>> INFO: Authentications that can continue: publickey,keyboard-interactive
>> ,password
>> INFO: Next authentication method: publickey
>> INFO: Authentications that can continue: password
>> INFO: Next authentication method: password
>> INFO: Authentication succeeded (password).
>> -----------------------------------3
>> -----------------------------------4
>> INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-c
>> tr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour
>> 128,arcfour256
>> INFO: aes256-ctr is not available.
>> INFO: aes192-ctr is not available.
>> INFO: aes256-cbc is not available.
>> INFO: aes192-cbc is not available.
>> INFO: CheckKexes: diffie-hellman-group14-sha1,ec
>> dh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
>> INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2
>> -nistp384,ecdsa-sha2-nistp521
>> INFO: SSH_MSG_KEXINIT sent
>> INFO: kex: server: diffie-hellman-group-exchange-
>> sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-gro
>> up14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
>> INFO: kex: server: ssh-rsa,ssh-dss
>> INFO: kex: server: aes256-ctr,aes192-ctr,aes128-c
>> tr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour2
>> 56,arcfour128,3des-ctr,3des-cbc
>> INFO: kex: server: aes256-ctr,aes192-ctr,aes128-c
>> tr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour2
>> 56,arcfour128,3des-ctr,3des-cbc
>> INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md
>> 5,hmac-md5-96,hmac-ripemd160
>> INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md
>> 5,hmac-md5-96,hmac-ripemd160
>> INFO: kex: server: ***@openssh.com,zlib,none
>> INFO: kex: server: ***@openssh.com,zlib,none
>> INFO: kex: server:
>> INFO: kex: server:
>> INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-n
>> istp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffi
>> e-hellman-group-exchange-sha256,diffie-hellman-group-exchang
>> e-sha1,diffie-hellman-group1-sha1
>> INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nis
>> tp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
>> INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
>> INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
>> INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-2
>> 56,hmac-sha1-96,hmac-md5-96
>> INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-2
>> 56,hmac-sha1-96,hmac-md5-96
>> INFO: kex: client: none
>> INFO: kex: client: none
>> INFO: kex: client:
>> INFO: kex: client:
>> INFO: kex: server->client aes128-ctr hmac-md5 none
>> INFO: kex: client->server aes128-ctr hmac-md5 none
>> INFO: SSH_MSG_KEXDH_INIT sent
>> INFO: expecting SSH_MSG_KEXDH_REPLY
>> INFO: ssh_rsa_verify: signature true
>>
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> _______________________________________________
>> JSch-users mailing list
>> JSch-***@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jsch-users
>>
>>
>
Vikas Verma
2016-10-10 16:38:28 UTC
Permalink
I just tried java -Xmx4096m -classpath "*" Sftp and it still fails. Looking at the change logs I see that there was a Rekeying issue with ProFTPD server but supposedly it was fixed in version 53. I have already tested with both 53 and 54 but no luck.


Thanks,

Vikas.




________________________________
From: Alan Ezust <***@gmail.com>
Sent: Monday, October 10, 2016 12:09 PM
To: Vikas Verma
Cc: jsch-***@lists.sourceforge.net
Subject: Re: [JSch-users] SFTP of large file hangs


Another guess: investigate what the startup command line options are for java on the system in question.
Is the max heap size limited with an -Xmx option? Or is there a -d32 being passed in?



On Mon, Oct 10, 2016 at 8:26 AM, Vikas Verma <***@hotmail.com<mailto:***@hotmail.com>> wrote:

I was able to reproduce this in our local environment. We were able to setup ProFTPD SFTP server with default settings. After transferring about 2GB of data (using jsch) the transfer stops. I am attaching the ProFTPD logs for reference. Please help.


Thanks,

Vikas.

________________________________
From: Vikas Verma <***@hotmail.com<mailto:***@hotmail.com>>
Sent: Wednesday, October 5, 2016 11:40:47 AM
To: Alan Ezust

Cc: jsch-***@lists.sourceforge.net<mailto:jsch-***@lists.sourceforge.net>
Subject: Re: [JSch-users] SFTP of large file hangs


@Alan --> Yes its running 64 bit.

@Lothar --> The problem is just between Proftpd and JSCH. I am able to transfer huge files (> 4gb) to other SFTP servers from JSCH. And Proftpd works fine with other ssh clients (like the one that comes with linux). I am not sure sure about their (Partner that hosts sftp server) logging. I can reach out and ask. But their support isnt that great.


Thanks,

Vikas.

________________________________
From: Alan Ezust <***@gmail.com<mailto:***@gmail.com>>
Sent: Wednesday, October 5, 2016 11:00:44 AM
To: Vikas Verma
Cc: jsch-***@lists.sourceforge.net<mailto:jsch-***@lists.sourceforge.net>
Subject: Re: [JSch-users] SFTP of large file hangs

Just wondering, is the client running jsch also running a 64 bit version of Java?


On Mon, Oct 3, 2016 at 12:19 PM, Vikas Verma <***@hotmail.com<mailto:***@hotmail.com>> wrote:

Can anyone please help? The SFTP server is proftpd. This looks like an old Rekeying problem between Proftpd and Jsch. I have tried JSCH version 50/51 and 54 with no luck.


Thanks,

Vikas.

________________________________
From: Vikas Verma <***@hotmail.com<mailto:***@hotmail.com>>
Sent: Wednesday, September 14, 2016 11:43:16 AM
To: jsch-***@lists.sourceforge.net<mailto:jsch-***@lists.sourceforge.net>
Subject: SFTP of large file hangs


We are having a strange issue with one of our clients (Client hosts the SFTP server. We are the client using JSCH). When we SFTP a large file to their SFTP server the file stops getting uploaded after exactly 2143990632<tel:2143990632> bytes. The JSCH connection just starts over at that point. I am including the logs. Has anyone seen this behavior before? I can use any other SFTP client with that server and they work.

In the logs you will see that after my custom log prints (3 and 4) it starts putting the file. After sending 2143990632<tel:2143990632> bytes it kind of starts over and the highlighted log shows up. The file at that point does not "grow" in size on the server side.

Help truly appreciated !!

Thanks,
Vikas.


INFO: Connecting to xxx.xxx.xxx.xx port 22
INFO: Connection established
INFO: Remote version string: SSH-2.0-mod_sftp/0.9.7
INFO: Local version string: SSH-2.0-JSCH-0.1.53
INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
INFO: aes256-ctr is not available.
INFO: aes192-ctr is not available.
INFO: aes256-cbc is not available.
INFO: aes192-cbc is not available.
INFO: CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: SSH_MSG_KEXINIT sent
INFO: SSH_MSG_KEXINIT received
INFO: kex: server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
INFO: kex: server: ssh-rsa,ssh-dss
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server:
INFO: kex: server:
INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: none
INFO: kex: client: none
INFO: kex: client:
INFO: kex: client:
INFO: kex: server->client aes128-ctr hmac-md5 none
INFO: kex: client->server aes128-ctr hmac-md5 none
INFO: SSH_MSG_KEXDH_INIT sent
INFO: expecting SSH_MSG_KEXDH_REPLY
INFO: ssh_rsa_verify: signature true
WARN: Permanently added 'xxx.xxx.xxx.xx' (RSA) to the list of known hosts.
INFO: SSH_MSG_NEWKEYS sent
INFO: SSH_MSG_NEWKEYS received
INFO: SSH_MSG_SERVICE_REQUEST sent
INFO: SSH_MSG_SERVICE_ACCEPT received
INFO: Authentications that can continue: publickey,keyboard-interactive,password
INFO: Next authentication method: publickey
INFO: Authentications that can continue: password
INFO: Next authentication method: password
INFO: Authentication succeeded (password).
-----------------------------------3
-----------------------------------4
INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
INFO: aes256-ctr is not available.
INFO: aes192-ctr is not available.
INFO: aes256-cbc is not available.
INFO: aes192-cbc is not available.
INFO: CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: SSH_MSG_KEXINIT sent
INFO: kex: server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
INFO: kex: server: ssh-rsa,ssh-dss
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server:
INFO: kex: server:
INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: none
INFO: kex: client: none
INFO: kex: client:
INFO: kex: client:
INFO: kex: server->client aes128-ctr hmac-md5 none
INFO: kex: client->server aes128-ctr hmac-md5 none
INFO: SSH_MSG_KEXDH_INIT sent
INFO: expecting SSH_MSG_KEXDH_REPLY
INFO: ssh_rsa_verify: signature true
Vikas Verma
2016-10-10 21:17:38 UTC
Permalink
I have also verified that changing SFTPRekey parameter to "none" on the ProFTPD server configuration fixes the issue. So the issue definitely is that JSCH is unable to handle Rekeying from the SFTP server. Any idea how I can fix this?

Help truly appreciated.


Thanks,

Vikas.

________________________________
From: Vikas Verma <***@hotmail.com>
Sent: Monday, October 10, 2016 12:38:28 PM
To: Alan Ezust
Cc: jsch-***@lists.sourceforge.net
Subject: Re: [JSch-users] SFTP of large file hangs


I just tried java -Xmx4096m -classpath "*" Sftp and it still fails. Looking at the change logs I see that there was a Rekeying issue with ProFTPD server but supposedly it was fixed in version 53. I have already tested with both 53 and 54 but no luck.


Thanks,

Vikas.




________________________________
From: Alan Ezust <***@gmail.com>
Sent: Monday, October 10, 2016 12:09 PM
To: Vikas Verma
Cc: jsch-***@lists.sourceforge.net
Subject: Re: [JSch-users] SFTP of large file hangs


Another guess: investigate what the startup command line options are for java on the system in question.
Is the max heap size limited with an -Xmx option? Or is there a -d32 being passed in?



On Mon, Oct 10, 2016 at 8:26 AM, Vikas Verma <***@hotmail.com<mailto:***@hotmail.com>> wrote:

I was able to reproduce this in our local environment. We were able to setup ProFTPD SFTP server with default settings. After transferring about 2GB of data (using jsch) the transfer stops. I am attaching the ProFTPD logs for reference. Please help.


Thanks,

Vikas.

________________________________
From: Vikas Verma <***@hotmail.com<mailto:***@hotmail.com>>
Sent: Wednesday, October 5, 2016 11:40:47 AM
To: Alan Ezust

Cc: jsch-***@lists.sourceforge.net<mailto:jsch-***@lists.sourceforge.net>
Subject: Re: [JSch-users] SFTP of large file hangs


@Alan --> Yes its running 64 bit.

@Lothar --> The problem is just between Proftpd and JSCH. I am able to transfer huge files (> 4gb) to other SFTP servers from JSCH. And Proftpd works fine with other ssh clients (like the one that comes with linux). I am not sure sure about their (Partner that hosts sftp server) logging. I can reach out and ask. But their support isnt that great.


Thanks,

Vikas.

________________________________
From: Alan Ezust <***@gmail.com<mailto:***@gmail.com>>
Sent: Wednesday, October 5, 2016 11:00:44 AM
To: Vikas Verma
Cc: jsch-***@lists.sourceforge.net<mailto:jsch-***@lists.sourceforge.net>
Subject: Re: [JSch-users] SFTP of large file hangs

Just wondering, is the client running jsch also running a 64 bit version of Java?


On Mon, Oct 3, 2016 at 12:19 PM, Vikas Verma <***@hotmail.com<mailto:***@hotmail.com>> wrote:

Can anyone please help? The SFTP server is proftpd. This looks like an old Rekeying problem between Proftpd and Jsch. I have tried JSCH version 50/51 and 54 with no luck.


Thanks,

Vikas.

________________________________
From: Vikas Verma <***@hotmail.com<mailto:***@hotmail.com>>
Sent: Wednesday, September 14, 2016 11:43:16 AM
To: jsch-***@lists.sourceforge.net<mailto:jsch-***@lists.sourceforge.net>
Subject: SFTP of large file hangs


We are having a strange issue with one of our clients (Client hosts the SFTP server. We are the client using JSCH). When we SFTP a large file to their SFTP server the file stops getting uploaded after exactly 2143990632<tel:2143990632> bytes. The JSCH connection just starts over at that point. I am including the logs. Has anyone seen this behavior before? I can use any other SFTP client with that server and they work.

In the logs you will see that after my custom log prints (3 and 4) it starts putting the file. After sending 2143990632<tel:2143990632> bytes it kind of starts over and the highlighted log shows up. The file at that point does not "grow" in size on the server side.

Help truly appreciated !!

Thanks,
Vikas.


INFO: Connecting to xxx.xxx.xxx.xx port 22
INFO: Connection established
INFO: Remote version string: SSH-2.0-mod_sftp/0.9.7
INFO: Local version string: SSH-2.0-JSCH-0.1.53
INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
INFO: aes256-ctr is not available.
INFO: aes192-ctr is not available.
INFO: aes256-cbc is not available.
INFO: aes192-cbc is not available.
INFO: CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: SSH_MSG_KEXINIT sent
INFO: SSH_MSG_KEXINIT received
INFO: kex: server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
INFO: kex: server: ssh-rsa,ssh-dss
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server:
INFO: kex: server:
INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: none
INFO: kex: client: none
INFO: kex: client:
INFO: kex: client:
INFO: kex: server->client aes128-ctr hmac-md5 none
INFO: kex: client->server aes128-ctr hmac-md5 none
INFO: SSH_MSG_KEXDH_INIT sent
INFO: expecting SSH_MSG_KEXDH_REPLY
INFO: ssh_rsa_verify: signature true
WARN: Permanently added 'xxx.xxx.xxx.xx' (RSA) to the list of known hosts.
INFO: SSH_MSG_NEWKEYS sent
INFO: SSH_MSG_NEWKEYS received
INFO: SSH_MSG_SERVICE_REQUEST sent
INFO: SSH_MSG_SERVICE_ACCEPT received
INFO: Authentications that can continue: publickey,keyboard-interactive,password
INFO: Next authentication method: publickey
INFO: Authentications that can continue: password
INFO: Next authentication method: password
INFO: Authentication succeeded (password).
-----------------------------------3
-----------------------------------4
INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
INFO: aes256-ctr is not available.
INFO: aes192-ctr is not available.
INFO: aes256-cbc is not available.
INFO: aes192-cbc is not available.
INFO: CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: SSH_MSG_KEXINIT sent
INFO: kex: server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
INFO: kex: server: ssh-rsa,ssh-dss
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server:
INFO: kex: server:
INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: none
INFO: kex: client: none
INFO: kex: client:
INFO: kex: client:
INFO: kex: server->client aes128-ctr hmac-md5 none
INFO: kex: client->server aes128-ctr hmac-md5 none
INFO: SSH_MSG_KEXDH_INIT sent
INFO: expecting SSH_MSG_KEXDH_REPLY
INFO: ssh_rsa_verify: signature true
Vikas Verma
2016-10-14 16:38:35 UTC
Permalink
Anyone? We are heavily invested in JSCH to look for another option. Are there any possible workarounds?

________________________________
From: Vikas Verma <***@hotmail.com>
Sent: Monday, October 10, 2016 5:17:38 PM
To: Alan Ezust
Cc: jsch-***@lists.sourceforge.net
Subject: Re: [JSch-users] SFTP of large file hangs


I have also verified that changing SFTPRekey parameter to "none" on the ProFTPD server configuration fixes the issue. So the issue definitely is that JSCH is unable to handle Rekeying from the SFTP server. Any idea how I can fix this?

Help truly appreciated.


Thanks,

Vikas.

________________________________
From: Vikas Verma <***@hotmail.com>
Sent: Monday, October 10, 2016 12:38:28 PM
To: Alan Ezust
Cc: jsch-***@lists.sourceforge.net
Subject: Re: [JSch-users] SFTP of large file hangs


I just tried java -Xmx4096m -classpath "*" Sftp and it still fails. Looking at the change logs I see that there was a Rekeying issue with ProFTPD server but supposedly it was fixed in version 53. I have already tested with both 53 and 54 but no luck.


Thanks,

Vikas.




________________________________
From: Alan Ezust <***@gmail.com>
Sent: Monday, October 10, 2016 12:09 PM
To: Vikas Verma
Cc: jsch-***@lists.sourceforge.net
Subject: Re: [JSch-users] SFTP of large file hangs


Another guess: investigate what the startup command line options are for java on the system in question.
Is the max heap size limited with an -Xmx option? Or is there a -d32 being passed in?



On Mon, Oct 10, 2016 at 8:26 AM, Vikas Verma <***@hotmail.com<mailto:***@hotmail.com>> wrote:

I was able to reproduce this in our local environment. We were able to setup ProFTPD SFTP server with default settings. After transferring about 2GB of data (using jsch) the transfer stops. I am attaching the ProFTPD logs for reference. Please help.


Thanks,

Vikas.

________________________________
From: Vikas Verma <***@hotmail.com<mailto:***@hotmail.com>>
Sent: Wednesday, October 5, 2016 11:40:47 AM
To: Alan Ezust

Cc: jsch-***@lists.sourceforge.net<mailto:jsch-***@lists.sourceforge.net>
Subject: Re: [JSch-users] SFTP of large file hangs


@Alan --> Yes its running 64 bit.

@Lothar --> The problem is just between Proftpd and JSCH. I am able to transfer huge files (> 4gb) to other SFTP servers from JSCH. And Proftpd works fine with other ssh clients (like the one that comes with linux). I am not sure sure about their (Partner that hosts sftp server) logging. I can reach out and ask. But their support isnt that great.


Thanks,

Vikas.

________________________________
From: Alan Ezust <***@gmail.com<mailto:***@gmail.com>>
Sent: Wednesday, October 5, 2016 11:00:44 AM
To: Vikas Verma
Cc: jsch-***@lists.sourceforge.net<mailto:jsch-***@lists.sourceforge.net>
Subject: Re: [JSch-users] SFTP of large file hangs

Just wondering, is the client running jsch also running a 64 bit version of Java?


On Mon, Oct 3, 2016 at 12:19 PM, Vikas Verma <***@hotmail.com<mailto:***@hotmail.com>> wrote:

Can anyone please help? The SFTP server is proftpd. This looks like an old Rekeying problem between Proftpd and Jsch. I have tried JSCH version 50/51 and 54 with no luck.


Thanks,

Vikas.

________________________________
From: Vikas Verma <***@hotmail.com<mailto:***@hotmail.com>>
Sent: Wednesday, September 14, 2016 11:43:16 AM
To: jsch-***@lists.sourceforge.net<mailto:jsch-***@lists.sourceforge.net>
Subject: SFTP of large file hangs


We are having a strange issue with one of our clients (Client hosts the SFTP server. We are the client using JSCH). When we SFTP a large file to their SFTP server the file stops getting uploaded after exactly 2143990632<tel:2143990632> bytes. The JSCH connection just starts over at that point. I am including the logs. Has anyone seen this behavior before? I can use any other SFTP client with that server and they work.

In the logs you will see that after my custom log prints (3 and 4) it starts putting the file. After sending 2143990632<tel:2143990632> bytes it kind of starts over and the highlighted log shows up. The file at that point does not "grow" in size on the server side.

Help truly appreciated !!

Thanks,
Vikas.


INFO: Connecting to xxx.xxx.xxx.xx port 22
INFO: Connection established
INFO: Remote version string: SSH-2.0-mod_sftp/0.9.7
INFO: Local version string: SSH-2.0-JSCH-0.1.53
INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
INFO: aes256-ctr is not available.
INFO: aes192-ctr is not available.
INFO: aes256-cbc is not available.
INFO: aes192-cbc is not available.
INFO: CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: SSH_MSG_KEXINIT sent
INFO: SSH_MSG_KEXINIT received
INFO: kex: server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
INFO: kex: server: ssh-rsa,ssh-dss
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server:
INFO: kex: server:
INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: none
INFO: kex: client: none
INFO: kex: client:
INFO: kex: client:
INFO: kex: server->client aes128-ctr hmac-md5 none
INFO: kex: client->server aes128-ctr hmac-md5 none
INFO: SSH_MSG_KEXDH_INIT sent
INFO: expecting SSH_MSG_KEXDH_REPLY
INFO: ssh_rsa_verify: signature true
WARN: Permanently added 'xxx.xxx.xxx.xx' (RSA) to the list of known hosts.
INFO: SSH_MSG_NEWKEYS sent
INFO: SSH_MSG_NEWKEYS received
INFO: SSH_MSG_SERVICE_REQUEST sent
INFO: SSH_MSG_SERVICE_ACCEPT received
INFO: Authentications that can continue: publickey,keyboard-interactive,password
INFO: Next authentication method: publickey
INFO: Authentications that can continue: password
INFO: Next authentication method: password
INFO: Authentication succeeded (password).
-----------------------------------3
-----------------------------------4
INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
INFO: aes256-ctr is not available.
INFO: aes192-ctr is not available.
INFO: aes256-cbc is not available.
INFO: aes192-cbc is not available.
INFO: CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: SSH_MSG_KEXINIT sent
INFO: kex: server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa1024-sha1
INFO: kex: server: ssh-rsa,ssh-dss
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: aes256-ctr,aes192-ctr,aes128-ctr,aes128-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server: ***@openssh.com<mailto:***@openssh.com>,zlib,none
INFO: kex: server:
INFO: kex: server:
INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
INFO: kex: client: none
INFO: kex: client: none
INFO: kex: client:
INFO: kex: client:
INFO: kex: server->client aes128-ctr hmac-md5 none
INFO: kex: client->server aes128-ctr hmac-md5 none
INFO: SSH_MSG_KEXDH_INIT sent
INFO: expecting SSH_MSG_KEXDH_REPLY
INFO: ssh_rsa_verify: signature true
Alan Ezust
2016-10-14 16:55:33 UTC
Permalink
I had to google to figure out what "rekeying" means and came across this
interesting thread
about a similar problem the paramiko client used to have at 1gb.

https://github.com/paramiko/paramiko/issues/49
Vikas Verma
2016-10-14 17:28:36 UTC
Permalink
Yeah looks like a similar issue. But I am not familiar with JSCH source code to figure out how to change that to make it work.


________________________________
From: Alan Ezust <***@gmail.com>
Sent: Friday, October 14, 2016 12:55 PM
To: Vikas Verma
Cc: jsch-***@lists.sourceforge.net
Subject: Re: [JSch-users] SFTP of large file hangs

I had to google to figure out what "rekeying" means and came across this interesting thread
about a similar problem the paramiko client used to have at 1gb.

https://github.com/paramiko/paramiko/issues/49
[https://avatars1.githubusercontent.com/u/1007176?v=3&s=400]<https://github.com/paramiko/paramiko/issues/49>

Transfer fails at 1GB: rekey window too small, hard-coded ...<https://github.com/paramiko/paramiko/issues/49>
github.com
First off, thanks for the great work with paramiko. At 1GB of data transferred over sftp, paramiko initiates a ssh rekey request and then sets a limit on the number ...
Loading...