Avatar of VSE
VSE
Flag for United States of America asked on

Linux rsync password prompt slow to appear - result in timeout

I am having a weird problem rsync'ing between two CentOS 5 linux servers.  This results in what appears to be a timeout.

[root@machineA ~]# rsync -vt root@machineBip:/root/somefile.txt ./

------long pause occurs here, about 30 seconds

root@machineBip's password:
Connection closed by machinebip
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at io.c(600) [receiver=3.0.6]
[root@machineA ~]#

What could be causing this problem?

Thank you,

Brian
Linux NetworkingNetwork SecuritySystem Utilities

Avatar of undefined
Last Comment
Adrian Dobrota

8/22/2022 - Mon
noci

Did you check that any forward & reverse DNS name lookups work, and do it fast.
same for validation of passwords acros a network in case NIS/LDAP is used?

And did you check for packet loss, which can create a lot of timeout's.
(Also look for automatic switch port setup of below 1Gbps links, they might miscommunicate half/full duplex creating this kind of packet loss.
ASKER CERTIFIED SOLUTION
Adrian Dobrota

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Adrian Dobrota

VSE, thanks for accepting my answer.
Could you please give us some feedback about what worked/what didn't/what the problem was? This way, others with similar problems browsing this forum will find it easier to diagnose.
Thank you
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy