Operating System - Linux
1827845 Members
1134 Online
109969 Solutions
New Discussion

How can I open up rsh access on Linux

 
SOLVED
Go to solution
KPS
Super Advisor

How can I open up rsh access on Linux

I'm trying to rsh from Solaris to a server configured with Red Hat 2.1 AS. When I do, I get a message that says "Connection Refused".
Are there some things i can look at. I checked the .rhosts file and there is an entry for the source of the rsh session on the target.

Thanks for any help you can provide...
-Ken
4 REPLIES 4
Paul Cross_1
Respected Contributor

Re: How can I open up rsh access on Linux

make sure xinetd is installed
make sure rsh is installed

add to /etc/securetty:
rexec
rsh
rlogin

set disable=no for /etc/xinet.d/rsh and /etc/xinet.d/rlogin
KPS
Super Advisor

Re: How can I open up rsh access on Linux

I found that I had to add entries to /etc/securetty for rlogin, rexec, and rsh and this seems to be working now. The only trouble I'm having issues with now is that I'm being prompted for a password, where I'm trying to not be prompted for this.



Both are installed and running..

I checked /etc/xinetd.d/rsh and /etc/xinted.d/rlogin and disable=no for both.




Paul Cross_1
Respected Contributor

Re: How can I open up rsh access on Linux

try adding the FQDN to your .rhosts file as in:

userx hostname.excellent.com

if that doesn't work use the IP number as in:

userx 192.168.1.10

p.
Steven E. Protter
Exalted Contributor
Solution

Re: How can I open up rsh access on Linux

After making the change to the two files in /etc/xinetd.d you need to:

service xinetd restart

To have the change take effect.

You can try the rsh command with the set -x command as well.

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