Unix/Linux Go Back    


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

UNIX for Beginners Questions & Answers


Tags
sftp, sftp put upload file files

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 4 Weeks Ago   -   Original Discussion by Aswin Pillai
Aswin Pillai's Unix or Linux Image
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; 4 Weeks Ago at 05:00 PM.. Reason: update
Sponsored Links
    #2  
Old Unix and Linux 4 Weeks Ago   -   Original Discussion by Aswin Pillai
Neo's Unix or Linux Image
Neo Neo is online now Forum Staff  
Administrator
 
Join Date: Sep 2000
Last Activity: 22 April 2018, 1:34 PM EDT
Location: Asia pacific region
Posts: 14,367
Thanks: 989
Thanked 1,365 Times in 650 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 Unix and Linux 4 Weeks Ago   -   Original Discussion by Aswin Pillai
shajay12's Unix or Linux Image
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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 01:59 PM.