rsh troubles on Scientific Linux



Hi,
I have a some troubles with the configuration of rsh service on SL,
because when I test it I have some messages:
[db2inst1@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@maq1 ~]$

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

[db2inst1@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@maq2 ~]$ date
Mon Nov 20 17:34:00 COT 2006
[db2inst1@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

.



Relevant Pages

  • Summary: rsh problem
    ... missing rsh lines on the offending box. ... Once these 2 lines were added, rsh worked. ... There are 2 hosts, X and Y. Host X can rsh to host Y and run a command. ...
    (SunManagers)
  • Re: Automatic rsh login to BSD Box
    ... I have 2 BSD boxes, want to acheive automatic rsh login from one BSD box to ... I tried placing host name of the boxes in .rhosts file of the boxes under ...
    (freebsd-questions)
  • RE: rsh not working as user
    ... Have a look at the .rhost file in the user home directory. ... you are rsh'ing from host A, hostA should be written on host B ... rsh not working as user ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • Re: rlogin
    ... We have only 1 host system. ... Remote login made via telnet is insecure and has no protection, ... > recommended them to have a SSH connection, ... rlogin=true mean that user can perform rsh. ...
    (comp.unix.aix)
  • Re: how to enable passwordless access for rsh rcp
    ... > allow rsh/rcp for root without a password from a particular host or ... > even for any host? ... > So just for the moment rsh is required. ... enter the password and complete your login on the hostB system. ...
    (comp.unix.solaris)