SFTP is successful but still shows timeout error

Hi,

I am doing sftp from remote server1 to remote server2. This is done through a script.

This script was working fine. But if i am tranfer files of 120 MB only some part of the file gets transferred (around 9 MB).
Incase i put the same file manually it gets uploaded successfully.

Can anyone tell we what could be the reason for this and possible solution for this?

how about transferring via scp?
#scp /somefile user@dest_server:/tmp

---------- Post updated at 08:09 PM ---------- Previous update was at 08:08 PM ----------

What version of OpenSSH you using?
The problem will resolve if both your host and dest system OpenSSH version are the SAME