From: arojaspa on
Hi,
I have a some troubles with the configuration of rsh service on SL,
because when I test it I have some messages:
[db2inst1(a)maq1 ~]$ rsh maq2 date
connect to address 157.253.42.39: No route to host
Trying krb4 rsh...
connect to address 157.253.42.39: No route to host
trying normal rsh (/usr/bin/rsh)
poll: protocol failure in circuit setup
[db2inst1(a)maq1 ~]$

However, if I try to use only <rhs maq2> without the command "date" or
another one, I don't have the problem.

[db2inst1(a)maq1 ~]$ rsh maq2
connect to address 157.253.42.39: No route to host
Trying krb4 rlogin...
connect to address 157.253.42.39: No route to host
trying normal rlogin (/usr/bin/rlogin)
Last login: Mon Nov 20 17:32:15 from maq1
[db2inst1(a)maq2 ~]$ date
Mon Nov 20 17:34:00 COT 2006
[db2inst1(a)maq2 ~]$

But I need that rsh works as the first case.

Additional information:
- The user db2inst1 exist in the both machines with the same ID
- The /etc/xinetd.d/rsh file contents
service shell
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rshd
disable = no
}
In both machines...


Thank you very much for your help.
Angela