UNIX for Beginners Questions & Answers

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


👤 Login to reply

    #1  
Old 03-21-2018
Aswin Pillai Aswin Pillai is offline
Registered User
 
Join Date: Mar 2018
Last Activity: 22 March 2018, 2:58 PM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old 03-22-2018
Neo's Unix or Linux Image
Neo Neo is online now Forum Staff  
Administrator
 
Join Date: Sep 2000
Last Activity: 21 July 2018, 11:14 PM EDT
Location: Asia pacific region
Posts: 14,579
Thanks: 1,032
Thanked 1,438 Times in 698 Posts
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.

Sponsored Links
    #3  
Old 03-22-2018
shajay12 shajay12 is offline
Registered User
 
Join Date: Mar 2018
Last Activity: 30 March 2018, 12:14 AM EDT
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
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
Sponsored Links
👤 Login to reply

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
Issue with sftp sriramis4u Shell Programming and Scripting 9 06-17-2011 11:26 AM
SFTP issue senthil_seera AIX 3 12-16-2008 09:29 AM
SFTP Issue with ssh dbridle AIX 7 04-19-2006 05:43 PM



All times are GMT -4. The time now is 11:17 PM.

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





Not a Forum Member?
Forgot Password?