SCP Connection Timeout


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers SCP Connection Timeout
# 1  
Old 07-15-2011
SCP Connection Timeout

Hello UNIX users,

Thanks for helping me in my earlier post. Now, I am facing a timeout issue when ever I am transferring a zipped file from my server to client's server.

If the zipped file size is below 3 MB, it goes fine. Anything above that fails.

Below is the part of screenshot from the log file:

+ scp -i ~/.ssh/id_rsa xyz.zip target_username@target_ip_address:~/from_source/
Read from remote host target_ip_address: Connection timed out
lost connection


All this happens in less than 1 minute. Even when I execute this scp command manually, the file transfer gets halted after a while.

Please help me take care of this connection time out problem.

Just as an info: I am using SunOS and the target system is UBUNTU.

Thanks,
Sri
# 2  
Old 07-15-2011
From adminschoice.com:
Quote:
This occurs either when the destination host is down or when
problems in the network cause lost transmission.

First check the operation of the host system, for example by
using ping(1M) and ftp (1), then repair or reboot as necessary.
If that doesn’t solve the problem, check the network cabling and
connections.

No connection was established in a specified time. A connect or
send request failed because the destination host did not properly
respond after a reasonable interval. (The timeout period is
dependent on the communication protocol.)
It usually means you never sent all the data to start with, or no data at all.

The problem is on the ubuntu side probably.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

How to solve TCP connection timeout (not in ssh)?

HI We have some Red Hat Linux Sevres which is having TCP connection timeout, not SSH connection, as an example oracle connection connected from TOD. SSH i managed to add keepalive and it's working fine (1 Reply)
Discussion started by: bentech4u
1 Replies

2. Shell Programming and Scripting

Validating scp connection

Hi Team, I have 2 servers Server-A & Server-B. Is there any way to test scp connection between Server-A & Server-B without transferring file? Basically i want to test the availability of scp connection.. Thanks in advance... (6 Replies)
Discussion started by: Girish19
6 Replies

3. Shell Programming and Scripting

Timeout to abolish ssh connection command it takes too long

Hi, I am running a ssh connection test in a script, how can I add a timeout to abolish the process if it takes too long? ssh -i ~/.ssh/ssl_key useraccount@computer1 Thank you. - j (1 Reply)
Discussion started by: hce
1 Replies

4. Solaris

weblogic connection timeout error

i am facing an issue that the server give a connection timeout after 60 sec for any request more than that number . i tried to increase the TCP INTERVAL TIMEOUT from the default 60000 ms to more higher number. the server seems to work fine and didn't give me the massage of the timeout but the... (0 Replies)
Discussion started by: core99
0 Replies

5. UNIX for Advanced & Expert Users

keep an open connection with scp or another similar program

Does anyone know a way to keep the connection open with scp? I really don't like having to type my password in every time I want to transfer a file. Or is there another similar program that will keep my connection open? (6 Replies)
Discussion started by: cokedude
6 Replies

6. UNIX and Linux Applications

sendmail connection timeout

Hi I am trying to configure sendmail for logwatch and another script i have . However when i try to send a test mail i am getting the following error. Logwatch is not sending any emails out nor is denyhost. I just want it to send emails out . Can anyone help me ? i have looked through... (1 Reply)
Discussion started by: um08
1 Replies

7. UNIX for Dummies Questions & Answers

Decreasing SSL connection timeout

hi people, i need help about timeout duration of ssl while connecting to another server in network. this is what i try bash-3.00# time ssh root@10.10.10.10 "date" ssh: connect to host 10.10.10.10 port 22: Connection timed out real 3m10.215s user 0m0.007s sys 0m0.011sthere is no... (2 Replies)
Discussion started by: sdkbjk
2 Replies

8. UNIX for Advanced & Expert Users

SCP Timeout?

Hello, I was wondering is there a way for SCP to shorten the timeout to fail when it attempts to connect a host that is down. Seems like it takes about a minute or so for scp to timeout. This is on a AIX 5.3 box. I saw someone suggest use -o ConnectTimeout but the scp I use doesn't have that... (1 Reply)
Discussion started by: benefactr
1 Replies

9. HP-UX

SCP transfer failed, lost connection

Hello, We try to do an SCP of a Sybase dump file of 4Go between two production HP-UX servers. Each time the transfer stopn at 299Mo and we have the message "connection lost". The destination FS has largefiles option activated. Could you help ? (7 Replies)
Discussion started by: ohemeg
7 Replies

10. Shell Programming and Scripting

ssh/scp - can you specify timeout?

I am scp'ing a file from a server (servera) to my server (serverb) If servera is down - the scp never times out ... it just hangs eternally.. It is possible to specify a timeout in my script - so if scp fails/hang for more than 60 seconds I assume its failed ? I am aware there is some... (3 Replies)
Discussion started by: frustrated1
3 Replies
Login or Register to Ask a Question