SFTP issue

sftp, sftp put upload file files

Thread Tools Search this Thread
# 1  
Old 03-21-2018
SFTP issue

I'm trying to transfer a 1 GB file using sftp process. The process always gets disconnected in between (may be after 20%) file transfer when it runs from a batch script. If i do it in interactive mode, it works.. I checked with account admin to see the timeout option if any, but didn't help.. looking for a help..

Last edited by Aswin Pillai; 03-21-2018 at 06:00 PM.. Reason: update
# 2  
Old 03-22-2018
sftp on what platform?

What version of sftp?


sftp is based on ssh and uses a configuration file to set timeouts:

SSH_CONFIG(5)               BSD File Formats Manual              SSH_CONFIG(5)

     ssh_config -- OpenSSH SSH client configuration files

     ssh(1) obtains configuration data from the following sources in the following order:

           1.   command-line options
           2.   user's configuration file (~/.ssh/config)
           3.   system-wide configuration file (/etc/ssh/ssh_config)


     SSH_CONFIG(5)               BSD File Formats Manual              SSH_CONFIG(5)


             Specifies whether to use compression.  The argument must be yes or no (the default).

             Specifies the number of tries (one per second) to make before exiting.  The argument must be an
             integer.  This may be useful in scripts if the connection sometimes fails.  The default is 1.

             Specifies the timeout (in seconds) used when connecting to the SSH server, instead of using the
             default system TCP timeout.  This value is used only when the target is down or really unreach-
             able, not when it refuses the connection.

# 3  
Old 03-22-2018
first install rsync
CentOS 6.4:

sudo yum install rsync

sudo apt-get install rsync

Please user rsync command and transfer file using this command

rsync -avzhe ssh public_html root@

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
SFTP issue George1234 Shell Programming and Scripting 6 06-04-2016 05:09 AM
Passwordless sftp issue sai_2507 Solaris 16 12-19-2013 12:44 AM
SFTP GET Local folder issue skpvalvekar Shell Programming and Scripting 3 04-17-2013 12:43 PM
sftp issue sai_2507 Red Hat 2 07-05-2012 11:23 AM
SFTP Coding issue krishna87 UNIX for Dummies Questions & Answers 1 08-26-2011 06:49 PM
Issue with sftp sriramis4u Shell Programming and Scripting 9 06-17-2011 12:26 PM
Issue with SFTP from different server by MrActionHero UNIX for Advanced & Expert Users 4 11-19-2010 12:39 PM
Issue with Expect Script for SFTP. Hari_Ganesh Solaris 3 07-13-2009 10:46 AM
Issue in uploading file using sftp Jaychandra Shell Programming and Scripting 3 05-25-2009 02:00 PM
Issue: SFTP via Mainframe using BPXBATCH ali_asgar UNIX for Dummies Questions & Answers 0 05-06-2009 06:11 AM
Urgent need help - issue sftp bucci Solaris 2 12-16-2008 10:42 AM
SFTP issue senthil_seera AIX 3 12-16-2008 10:29 AM
sftp BatchMode issue kotasateesh Shell Programming and Scripting 0 03-20-2008 10:59 AM
SFTP script issue sdhalepaska UNIX for Dummies Questions & Answers 0 07-05-2007 02:24 PM
SFTP Issue with ssh dbridle AIX 7 04-19-2006 06:43 PM