Under what circumstances does scp corrupt data?

From: h.wulff (zuhause_at_aol.com)
Date: 04/03/05


Date: Sun, 3 Apr 2005 19:20:07 +0200

Hello,

I guess scp does never corrupt data and this is what I expect =)

So, let me explain our problem:
We have an internet server and copy once a week the data to our office.
The server is a debian sarge RC2 with ssh version "OpenSSH_3.8.1p1
Debian-8.sarge.4, OpenSSL 0.9.7e 25 Oct 2004" and the client is woody
with ssh version "OpenSSH_3.4p1 Debian 1:3.4p1-1.woody.3, SSH protocols
1.5/2.0, OpenSSL 0x0090603f"

This all works fine for a long time. A few weeks ago I changed the
compression format of the files from tar.gz to tar.bz2 because of the
less size. And since then there is always data corruption in the same
file. (We copy 12 files)

My first guess was there is a problem with bzip2 so I checked the
version, but it is on both sides "Version 1.0.2, 30-Dec-2001." So I
checked the files with "bzip2 -tvvv <file>" on the server before I
copied and after I copied on the client. On the client the file is
corrupt. I also checked the md5sum and they are different.

Then I read I should check the memory and I did with "memburn" (I have
no local access to the client to use memtest86). Memburn ran for a whole
day but found no problem.

And now I look for the problem at scp... ;)
I call scp with the options "-p -r -B -P 1022"

So, can anyone give me a hint? I'am out of ideas, except going back to
tar.gz... =)
Thank you for your efforts!

-- 
	h.wulff
	   [dont send me an email]


Relevant Pages

  • Re: scp requieres scp1?
    ... >> If the server doesn't support SSH1, it doesn't support scp. ... SSH connection to the server using your local SSH client program, ...
    (comp.security.ssh)
  • Re: fastest network protocol
    ... by FTP since the two boxes use a direct TCP-connection for data transport. ... NFS does some more complex things and anything with 'secure' in name (like scp) ... I'm pointing to the hard disc because i don't know how intelligent your server ... client can use /n to get tha data. ...
    (comp.os.linux.networking)
  • Re: Using "command" auth keys option to process scp operations
    ... the client should wait for the server to terminate the connection. ... The client scp requests ssh to provide it with a reliable, transparent, ... protocol obviously deals with file names and attributes of files to be ...
    (comp.security.ssh)
  • Re: SCP help
    ... I suggest you set up password-less authentication between the client and ... add the public key of the user on the client to ... the ~/.ssh/authorized_keys2 file on the server. ... > Hi I am trying to write a script using scp in which I would like to pass the ...
    (SSH)
  • Re: string data transfer problem through network (libxml2)
    ... >>i'm curently writing a game where 2 clients play one against each other ... >>Each client sends data through a simple char buffer which is written into ... >>the socket file descriptor to the server which transmits the stuff to the ... TCP won't corrupt ...
    (comp.unix.programmer)