Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


SFTP issue


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
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  
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  
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 or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
SFTP issue
George1234
Hi, I am trying to connect to a windows server via sftp from a user A and my job did log into it via user B. So I uses the following command to connect to teh new server. B>sftp -o IdentityFile=/pathtofile/id_rsa a@windows_server and it worked. But I don't want to use private key. Can we...... Shell Programming and Scripting
6
Shell Programming and Scripting
Passwordless sftp issue
sai_2507
Hello Experts, I am trying to setup passwordless sftp from one of linux box to solaris box. I have generated key-pair and below is the permissions of the respective files. drwx------. 2 sftpuser sftpuser 4096 Dec 17 23:57 .ssh drwx------. 2 sftpuser sftpuser 4096 Dec 17 23:57 ....... Solaris
16
Solaris
sftp issue
sai_2507
Hi experts, While trying to sftp from one the red hat linux box it is giving following error. Status: Connecting to 10.1.82.155... Response: fzSftp started Command: open "prodbill@10.1.82.155" 22 Command: Pass: *********...... Red Hat
2
Red Hat
Issue with sftp
sriramis4u
Hi Friends, I have created a shell and which will sftp file1 from serverA to serverB. In sftp prompt on serverA it is showing the file1 is available on serverB. where as when connected to ServerB it is not showing the file1. How come this. ServerA sftp> ls hsstest.dmp sftp> pwd Remote...... Shell Programming and Scripting
9
Shell Programming and Scripting
SFTP issue
senthil_seera
Hi!! SFTP5.0 is not working thru automatically pushing files, but manual file transfer is happening fine... If anyone knows,Pls share the reason. Regards, Senthil... AIX
3
AIX

Featured Tech Videos