PDA

View Full Version : Cannot copy file by rcp



andrey gorohov
25-Oct-2011, 11:26
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
View this thread: http://forums.novell.com/showthread.php?t=447281

ab
25-Oct-2011, 11:30
-----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/

iQIcBAEBAgAGBQJOpo+3AAoJEF+XTK08PnB5NdcP/1avDqpW5s+A6IYlTeXkT3RE
lkmxl5CfKkDRiIWrJujhgO2inuZyF1fIylFGqObWMCi1LXCyWW wSP5fKoR/rvFik
3qGWiXCSgdn6e5cLUs1p4JHzZ4z5VGSvw1QBUeevBIAZXwjqAP TfP4tJTf0Biucv
TRwHZT76RRF1sfcLtblX+MWknx923FybJ7GyyZ80zecur7tTni OMzjGcfPrzJBdn
AYV46WGzhCpf5k86JNrcGLeJCqX9N+6GBwahLlqzE8VfbLYmOR 3wFCbWeqSOx4U5
0rjW6vOAxudBbYJEI4u3Tp4kQ+qRisIbXevobR7vE0tLoTVQhD 2vSFJ/uNZFl9c3
W9PSNUOKJbmx/eSHcfKCvbgaaxDyiI7j2eJ/qJABib+BJi3dayAH5Xth+i2MlmcN
I50BBNASGL2GnxRm9bipgra1+JHogFtOEwbcyvD3jZ/QpX+VDxjw13aMUfYLTA59
U/efNpJAuJZNuwaNo0sBLNiS6Zmcb5ZGjmYZkgOuj412b5LddDg7 HPK3a4AWHX/s
pSPa7a1RKKxURD8DWMcuuc2k2aMqCCwV5lcVB0g2QNUkMlLN30 05k2wQYW5keOxp
bsKUsmB7hHbO3DdGe37d23mjerHdxD6Y//kIdKhqDibrasEy8LH3m6UhGljDMx4z
U9/zrj2UPK2N5iwb7hUD
=1F+V
-----END PGP SIGNATURE-----

elagrew
25-Oct-2011, 15:56
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:
> -----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/)
>
> iQIcBAEBAgAGBQJOpo+3AAoJEF+XTK08PnB5NdcP/1avDqpW5s+A6IYlTeXkT3RE
> lkmxl5CfKkDRiIWrJujhgO2inuZyF1fIylFGqObWMCi1LXCyWW wSP5fKoR/rvFik
> 3qGWiXCSgdn6e5cLUs1p4JHzZ4z5VGSvw1QBUeevBIAZXwjqAP TfP4tJTf0Biucv
> TRwHZT76RRF1sfcLtblX+MWknx923FybJ7GyyZ80zecur7tTni OMzjGcfPrzJBdn
> AYV46WGzhCpf5k86JNrcGLeJCqX9N+6GBwahLlqzE8VfbLYmOR 3wFCbWeqSOx4U5
> 0rjW6vOAxudBbYJEI4u3Tp4kQ+qRisIbXevobR7vE0tLoTVQhD 2vSFJ/uNZFl9c3
> W9PSNUOKJbmx/eSHcfKCvbgaaxDyiI7j2eJ/qJABib+BJi3dayAH5Xth+i2MlmcN
> I50BBNASGL2GnxRm9bipgra1+JHogFtOEwbcyvD3jZ/QpX+VDxjw13aMUfYLTA59
> U/efNpJAuJZNuwaNo0sBLNiS6Zmcb5ZGjmYZkgOuj412b5LddDg7 HPK3a4AWHX/s
> pSPa7a1RKKxURD8DWMcuuc2k2aMqCCwV5lcVB0g2QNUkMlLN30 05k2wQYW5keOxp
> bsKUsmB7hHbO3DdGe37d23mjerHdxD6Y//kIdKhqDibrasEy8LH3m6UhGljDMx4z
> U9/zrj2UPK2N5iwb7hUD
> =1F+V
> -----END PGP SIGNATURE-----


--
El LaGrew
elbert.lagrew#katun.com
elagrew on twitter
------------------------------------------------------------------------
elagrew's Profile: http://forums.novell.com/member.php?userid=10240
View this thread: http://forums.novell.com/showthread.php?t=447281

andrey gorohov
26-Oct-2011, 10:36
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
View this thread: http://forums.novell.com/showthread.php?t=447281

jmozdzen
26-Oct-2011, 13:06
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
View this thread: http://forums.novell.com/showthread.php?t=447281