1752786 Members
5768 Online
108789 Solutions
New Discussion

Can't rsh to a RHAS2.1

 
kenny chia
Regular Advisor

Re: Can't rsh to a RHAS2.1

Hi
IMHO I think there is no permission problems as it reported "Connection refused" rather than "Permission denied"

Could it be a pam problem?
this is the contents of my /etc/pam.d/rsh

#%PAM-1.0
# For root login to succeed here with pam_securetty, "rsh" must be
# listed in /etc/securetty.
auth required /lib/security/pam_nologin.so
auth required /lib/security/pam_securetty.so
auth required /lib/security/pam_env.so
auth required /lib/security/pam_rhosts_auth.so
account required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth
All Your Bases Are Belong To Us!
Stuart Browne
Honored Contributor

Re: Can't rsh to a RHAS2.1

It could be, but 'Connection refused' usually means that something is not allowing it to connect rather than dropping the connection.

Ensure that the 'rsh' service is listening, using:

netstat -ntlp | grep xinetd

One of the listed ports should be 514 (Yes, I was wrong the other day).

If it's not, then use 'chkconfig rsh on' and do it again.
One long-haired git at your service...