File size limitation for rcp

Hi

I am trying to rcp a file from Solaris box to Linux.
When the file size is 2,205,255,047, the rcp fails with the message

Jan 10 01:11:53 hqsas167 rsh[22519]: [ID 427203 daemon.debug] pam_authenticate: error Authentication failed

However when I rcp a file with smaller size - 9,434,477 - the rcp completes with success.

Is there any way I can increase the maximum file size for rcp ? I read about a command line option rcp -R [size] but this does not work.

Any help would be appreciated - thank you !

Are you sure you aren't running into a filesize problem on your target system? I'm not sure how to "increase the maximum file size for rcp", but have an idea for a workaround. You can use dd/gzip/split to break the file into smaller chunks, transfer them and then reconstruct the file on the other side. For example, if I wanted to transfer "somefile.tar":

  1. Split the file into 50MB chunks

dd if=somefile.tar | gzip -c | split -b 50m - somefile.gz.

You'll end up with a bunch of files with the following pattern:

somefile.gz.aa
somefile.gz.ab
somefile.gz.ac
...

  1. rcp the files
  2. Reconstruct the file on the target system:

cat somefile.gz.* | gzip -dc | dd of=somefile.tar

Cheers,

Keith

see if this one works ... (you don't have to use the "v" option if you don't want to) ...

(cd /local/dir; tar cvfp - bigfile) | rsh server1 "cd /remote/dir; tar xvfp -"