# Cannot copy file by rcp

**URL:** <https://forums.suse.com/t/cannot-copy-file-by-rcp/21963>\
**Category:** SLES Networking\
**Created:** [October 25, 2011, 1:26pm UTC](https://forums.suse.com/t/cannot-copy-file-by-rcp/21963 "2011-10-25T13:26:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [October 25, 2011, 1:26pm UTC](https://forums.suse.com/t/cannot-copy-file-by-rcp/21963/1 "2011-10-25T13:26:01Z")

</div>

Hello!  
for the first, I’m not a linux guy:)  
i have a script. this script copying file by rpc. last time file copied  
1 month before. and now i cannot copy new file. rcp starting to copy, it  
copies 540Kb and than it stuckes (connection timeout).  
cannot find anything in logs about it.  
(suse linux 9 on both servers)  
So can you help me, where should i search the problem. What it can be?  
btw network configuration never changed.  
thanks in advance!

## – andrey\_gorohov

andrey\_gorohov’s Profile: [http://forums.novell.com/member.php?userid=118711](http://forums.novell.com/member.php?userid=118711)  
View this thread: [http://forums.novell.com/showthread.php?t=447281](http://forums.novell.com/showthread.php?t=447281)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [October 25, 2011, 1:30pm UTC](https://forums.suse.com/t/cannot-copy-file-by-rcp/21963/2 "2011-10-25T13:30:58Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

rcp is pretty old… in fact, ancient, and insecure. You really should  
be using scp for any file copies as it adds security and works out of  
the box on SLES (since SSH is enabled by default on SLES). Perhaps rcp  
actually uses scp these days, but I’d still use scp explicitly since  
sending data unencrypted across the wire is generally a bad idea. Is  
this an option for you?

If not, get a LAN trace of the connection and see which side is not  
continuing to send data when it should. A lack of acknowledgement from  
the server could stall the client, or just leave it retrying things over  
and over. A lack of continuing the stream from the client could also  
stall things.

Good luck.  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v2.0.15 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org/](http://enigmail.mozdev.org/)

iQIcBAEBAgAGBQJOpo+3AAoJEF+XTK08PnB5NdcP/1avDqpW5s+A6IYlTeXkT3RE  
lkmxl5CfKkDRiIWrJujhgO2inuZyF1fIylFGqObWMCi1LXCyWWwSP5fKoR/rvFik  
3qGWiXCSgdn6e5cLUs1p4JHzZ4z5VGSvw1QBUeevBIAZXwjqAPTfP4tJTf0Biucv  
TRwHZT76RRF1sfcLtblX+MWknx923FybJ7GyyZ80zecur7tTniOMzjGcfPrzJBdn  
AYV46WGzhCpf5k86JNrcGLeJCqX9N+6GBwahLlqzE8VfbLYmOR3wFCbWeqSOx4U5  
0rjW6vOAxudBbYJEI4u3Tp4kQ+qRisIbXevobR7vE0tLoTVQhD2vSFJ/uNZFl9c3  
W9PSNUOKJbmx/eSHcfKCvbgaaxDyiI7j2eJ/qJABib+BJi3dayAH5Xth+i2MlmcN  
I50BBNASGL2GnxRm9bipgra1+JHogFtOEwbcyvD3jZ/QpX+VDxjw13aMUfYLTA59  
U/efNpJAuJZNuwaNo0sBLNiS6Zmcb5ZGjmYZkgOuj412b5LddDg7HPK3a4AWHX/s  
pSPa7a1RKKxURD8DWMcuuc2k2aMqCCwV5lcVB0g2QNUkMlLN3005k2wQYW5keOxp  
bsKUsmB7hHbO3DdGe37d23mjerHdxD6Y//kIdKhqDibrasEy8LH3m6UhGljDMx4z  
U9/zrj2UPK2N5iwb7hUD  
=1F+V  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [October 25, 2011, 5:56pm UTC](https://forums.suse.com/t/cannot-copy-file-by-rcp/21963/3 "2011-10-25T17:56:03Z")

</div>

I concur. I use scp here exclusively with no issues. Although I am  
running SLES 10, but that should not make a difference.

–El

ab;2148532 Wrote:[color=blue]

> -----BEGIN PGP SIGNED MESSAGE-----  
> Hash: SHA1
> 
> rcp is pretty old… in fact, ancient, and insecure. You really  
> should  
> be using scp for any file copies as it adds security and works out of  
> the box on SLES (since SSH is enabled by default on SLES). Perhaps  
> rcp  
> actually uses scp these days, but I’d still use scp explicitly since  
> sending data unencrypted across the wire is generally a bad idea. Is  
> this an option for you?
> 
> If not, get a LAN trace of the connection and see which side is not  
> continuing to send data when it should. A lack of acknowledgement  
> from  
> the server could stall the client, or just leave it retrying things  
> over  
> and over. A lack of continuing the stream from the client could also  
> stall things.
> 
> Good luck.  
> -----BEGIN PGP SIGNATURE-----  
> Version: GnuPG v2.0.15 (GNU/Linux)  
> Comment: Using GnuPG with Mozilla - ‘Enigmail: A simple interface for  
> OpenPGP email security’ ([http://enigmail.mozdev.org/](http://enigmail.mozdev.org/))
> 
> iQIcBAEBAgAGBQJOpo+3AAoJEF+XTK08PnB5NdcP/1avDqpW5s+A6IYlTeXkT3RE  
> lkmxl5CfKkDRiIWrJujhgO2inuZyF1fIylFGqObWMCi1LXCyWWwSP5fKoR/rvFik  
> 3qGWiXCSgdn6e5cLUs1p4JHzZ4z5VGSvw1QBUeevBIAZXwjqAPTfP4tJTf0Biucv  
> TRwHZT76RRF1sfcLtblX+MWknx923FybJ7GyyZ80zecur7tTniOMzjGcfPrzJBdn  
> AYV46WGzhCpf5k86JNrcGLeJCqX9N+6GBwahLlqzE8VfbLYmOR3wFCbWeqSOx4U5  
> 0rjW6vOAxudBbYJEI4u3Tp4kQ+qRisIbXevobR7vE0tLoTVQhD2vSFJ/uNZFl9c3  
> W9PSNUOKJbmx/eSHcfKCvbgaaxDyiI7j2eJ/qJABib+BJi3dayAH5Xth+i2MlmcN  
> I50BBNASGL2GnxRm9bipgra1+JHogFtOEwbcyvD3jZ/QpX+VDxjw13aMUfYLTA59  
> U/efNpJAuJZNuwaNo0sBLNiS6Zmcb5ZGjmYZkgOuj412b5LddDg7HPK3a4AWHX/s  
> pSPa7a1RKKxURD8DWMcuuc2k2aMqCCwV5lcVB0g2QNUkMlLN3005k2wQYW5keOxp  
> bsKUsmB7hHbO3DdGe37d23mjerHdxD6Y//kIdKhqDibrasEy8LH3m6UhGljDMx4z  
> U9/zrj2UPK2N5iwb7hUD  
> =1F+V  
> -----END PGP SIGNATURE-----[/color]

## – El LaGrew elbert.lagrew#[katun.com](http://katun.com) elagrew on twitter

elagrew’s Profile: [http://forums.novell.com/member.php?userid=10240](http://forums.novell.com/member.php?userid=10240)  
View this thread: [http://forums.novell.com/showthread.php?t=447281](http://forums.novell.com/showthread.php?t=447281)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [October 26, 2011, 12:36pm UTC](https://forums.suse.com/t/cannot-copy-file-by-rcp/21963/4 "2011-10-26T12:36:01Z")

</div>

unfortunatly i cannot use scp or other… only rcp. it’s a standart for  
our scripts… ☹

## – andrey\_gorohov

andrey\_gorohov’s Profile: [http://forums.novell.com/member.php?userid=118711](http://forums.novell.com/member.php?userid=118711)  
View this thread: [http://forums.novell.com/showthread.php?t=447281](http://forums.novell.com/showthread.php?t=447281)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [October 26, 2011, 3:06pm UTC](https://forums.suse.com/t/cannot-copy-file-by-rcp/21963/5 "2011-10-26T15:06:01Z")

</div>

Andrey,

some more details are in order then:

Are both source and destination on the same subnet? If not, what’s the  
basic network setup (rcp through local routers vs. off-site, VPNs,  
Internet, whatever else is involved)

Do pings go through between the involved nodes? Do they go through with  
large block sizes?

Have you tried snooping with ethereal (“wireshark” nowadays) to see  
what the last part of the traffic is?

Which “logs” have you checked?

Does invoking rsh work? Any hangs in the output when transfering larger  
bits of stdout (from something like “find /”)?

Regards,  
Jens

## – from the times when today’s “old school” was “new school” :eek:

jmozdzen’s Profile: [http://forums.novell.com/member.php?userid=32246](http://forums.novell.com/member.php?userid=32246)  
View this thread: [http://forums.novell.com/showthread.php?t=447281](http://forums.novell.com/showthread.php?t=447281)
