Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rsh connection refused

Status
Not open for further replies.

Arluin

IS-IT--Management
Jan 6, 2003
19
US
I'm trying to rsh to a host (devdb01.asp.net), getting connection refused.
I am using .rhosts file in /
.rhosts contains:
<bof>
blaster.asp.net
<eof>
(i.e.: no username specified)
I verified the source host name telnetting in from blaster and then doing a who command to see where I logged in from.
I tried doing: &quot;rsh localhost&quot; and that also gets connection refused

So I've got connectivity, I have permissions, what else is there to go wrong?
 
Check youor hosts files in /etc/hosts on both machines and see if both machines are listed. Then check the hosts.equiv file on both machines. You must have the offical net names for the machines in the file.
 
If you are not specifying a username in .rhosts then the user on both machines needs to be the same.

Make sure you &quot;chmod 600 .rhosts&quot;. It can't be readable by anyone but the owner.

Also, I think the actual name of the server needs to be the first entry for the IP in /etc/hosts. e.g.:
10.0.0.1 theblaster blaster.asp.net
is not going to work.

hosts.equiv is not necessary if you are using .rhosts.
 
Chmod'd .rhosts and cleaned up extraneous entries in /etc/hosts.
Verified fqdn was first entry in /etc/hosts for both systems.
Trying to connect from root as root (for Veritas agent install).
I just successfully did it on another system, dang it!
There's got to be some little thing not set right...
 
Is the destination system listening on ports 513 and 514 (remote login and remote shell respectively)?

netstat -an | grep \.51[34] should tell you... Annihilannic.
 
/etc/inetd.conf had the rsh services commented out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top