Showing results for 
Search instead for 
Did you mean: 

Can't rsh to a RHAS2.1

Regular Advisor

Re: Can't rsh to a RHAS2.1

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

# For root login to succeed here with pam_securetty, "rsh" must be
# listed in /etc/securetty.
auth required /lib/security/
auth required /lib/security/
auth required /lib/security/
auth required /lib/security/
account required /lib/security/ service=system-auth
session required /lib/security/ service=system-auth
All Your Bases Are Belong To Us!
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...