Am have a function in perl which does the sftp to copy a file from my local machine to a remote machine . 3 out of 5 times the sftp fails, saying the channel 1 received end of file. This info i could see if I enable the debug to 1 in net::sftp module. So have pasted the output of the debug logs when it passed and when it failed. Please help me solve this random failures ?