1753502 Members
4766 Online
108794 Solutions
New Discussion юеВ

rsh taking too much time

 
Mike_811
Advisor

rsh taking too much time

Hi,
when using a simple rsh command for a specific user (for instance : rsh host ls), the command hangs for something like one minute and then execute.
Any idea where the pb can come from ?
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: rsh taking too much time

Shalom,

Almost always name resolution.

Put an entry for the target and source in /etc/hosts and that should speed up the execution nicely.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mike_811
Advisor

Re: rsh taking too much time

Thanks for the reply
But the hostname is already available in /etc/hosts
A ping is immediate.
It's a very strange behaviour because it only occurs with a specific user.
Wouter Jagers
Honored Contributor

Re: rsh taking too much time

Is the user's profile executed when issuing an rsh command ? Something fishy inthere maybe ?

What happens when this particular user tries to log in to this machine ?

Just a hunch..

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
Mike_811
Advisor

Re: rsh taking too much time

Found the pb.
Too many non available entries in the .rhosts file of the user.
Thanks anyway for your help
Mike_811
Advisor

Re: rsh taking too much time

e
John Collier
Esteemed Contributor

Re: rsh taking too much time

Silly question(s):

What happens when the same user tries to get into the remote system via SSH?

Further more, why would you still be using RSH for anything?
"I expect to pass through this world but once. Any good, therefore, that I can do, or any kindness that I can show to any human being, let me do it now. Let me not defer or neglect it, for I shall not pass this way again." Stephen Krebbet, 1793-1855