1829709 Members
1505 Online
109992 Solutions
New Discussion

rcmd: Lost connection

 
Greg Cotten
Advisor

rcmd: Lost connection

I have an HP-UX server that for whatever reason is giving me the Lost connection anytime I try to connect to it either using remsh or rlogin. I have entries in the .rhosts, hosts_equiv, and hosts file for the appropriate boxes I am trying to use to connect to this computer. I have tried editing the inetd.conf file the rlogin and remsh lines to no avail. Can someone please let me know if there is anything else I can try. I just loaded this fresh from local CD's and I have not made any modifications.
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: rcmd: Lost connection

Shalom,

Either the .rhosts configuration is wrong, or the daemon in inetd.conf is not enabled or configured properly.

There could be a problem with inetd.conf and it needs to be restarted.

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
Greg Cotten
Advisor

Re: rcmd: Lost connection

well I have edited the inetd.conf many times commenting out the rlogin and the remsh lines to see if it would help, then restarting inetd by the "inetd -c" command, and still same error. The .rhosts file looks like the following;
computername root
computername root

When I am root from one of many hp-ux boxes I still get the error. I can go from this problem hp-ux box to all the others via remsh or rlogin
Johnson Punniyalingam
Honored Contributor

Re: rcmd: Lost connection

>>computername root<< simple Question ?computer name is refer to pc/server ..?

can we try "IP address instead of >>Computer name (e.g)

192.168.1.1 root
Problems are common to all, but attitude makes the difference
Greg Cotten
Advisor

Re: rcmd: Lost connection

Thanks for the replies but I edited the .rhosts file and put two of the other HP-UX machines IP addresses, taking out the hostname and still same error. Also nothing in the syslog about the error. Rebooted the server and still same. Anymore thoughts.
madhuchakkaravarthy
Trusted Contributor

Re: rcmd: Lost connection

instead of adding ip address and hostname add just + in .rhosts file which makes the system trusted..

regards

MC
Greg Cotten
Advisor

Re: rcmd: Lost connection

yesterday I used the ignite server to reinstall the OS due to the fact I had to update the swap space and the new installation fixed the issue. Thanks for the replies and I have assigned points. Thanks everyone.