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 ?

Do you have it set to logout the user after a certain time?

Is the partition full?

The partition is not full, sorry I forgot to say it.

regarding the logout I dont know, how can I check that?

Would probabally be in /opt/ssh/etc/sshd_config

One other thing is if you have 2 computers with same IP address this could also cause disconnects, but would be more random.

Does is disconnect a certain "time" (ie 45seconds) after the transfer starts?

I will haveto check tomorrow at work

at 299Mb, which could be 45se or less, why ?

Try adjusting following(in sshd_config):

ClientAliveCountMax
Sets the number of client alive messages (see below) which may be
sent without sshd(8) receiving any messages back from the client.
If this threshold is reached while client alive messages are
being sent, sshd will disconnect the client, terminating the ses-
sion. It is important to note that the use of client alive mes-
sages is very different from TCPKeepAlive (below). The client
alive messages are sent through the encrypted channel and there-
fore will not be spoofable. The TCP keepalive option enabled by
TCPKeepAlive is spoofable. The client alive mechanism is valu-
able when the client or server depend on knowing when a connec-
tion has become inactive.

         The default value is 3.  If ClientAliveInterval \(see below\) is
         set to 15, and ClientAliveCountMax is left at the default, unre-
         sponsive SSH clients will be disconnected after approximately 45
         seconds.  This option applies to protocol version 2 only.

this is what ive got in sshd_config :

Protocol 2
PermitRootLogin no
KerberosAuthentication yes
UsePAM yes
X11Forwarding yes
X11UseLocalhost no
PrintMotd no
PrintLastLog no
Subsystem sftp /opt/ssh/libexec/sftp-server

My colleague succed to transfer the file by this way :

ssh user@server "(cd /sybase_backup/RegularDumpFiles/AMD1_PAR_LIV_SQL/DONOTREMOVE;tar -cf - AMANDA-03-05-2008.*)" | tar -xvf -