Home Man
Search
Today's Posts
Register

If you're not sure where to post a Unix or Linux question, post it here. All unix and Linux beginners welcome in this forum!

SFTP issue

Tags
sftp, sftp put upload file files

👤 Login to reply

 
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 05:00 PM.. Reason: update
# 2  
Old 03-22-2018
sftp on what platform?

What version of sftp?

FYI.

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


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

NAME
     ssh_config -- OpenSSH SSH client configuration files

DESCRIPTION
     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)

.....

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

     ...

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

     ConnectionAttempts
             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.

     ConnectTimeout
             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
Debian/Ubuntu:

sudo apt-get install rsync

Please user rsync command and transfer file using this command

rsync -avzhe ssh public_html root@10.11.12.13:/home
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SFTP issue George1234 Shell Programming and Scripting 6 06-04-2016 04:09 AM
sftp issue sai_2507 Red Hat 2 07-05-2012 10:23 AM
SFTP Coding issue krishna87 UNIX for Dummies Questions & Answers 1 08-26-2011 05:49 PM
Issue with sftp sriramis4u Shell Programming and Scripting 9 06-17-2011 11:26 AM
Issue with SFTP from different server by MrActionHero UNIX for Advanced & Expert Users 4 11-19-2010 11:39 AM
Sftp Key Authentication Issue SteveBurch UNIX for Advanced & Expert Users 3 05-28-2009 11:27 AM
SFTP issue senthil_seera AIX 3 12-16-2008 09:29 AM
sftp BatchMode issue kotasateesh Shell Programming and Scripting 0 03-20-2008 09:59 AM
SFTP script issue sdhalepaska UNIX for Dummies Questions & Answers 0 07-05-2007 01:24 PM
SFTP Issue with ssh dbridle AIX 7 04-19-2006 05:43 PM


All times are GMT -4. The time now is 05:16 AM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password