1834639 Members
2694 Online
110069 Solutions
New Discussion

rcmd: Lost Connection

 
MANISH PATEL_2
Frequent Advisor

rcmd: Lost Connection

Hi,

I am trying to connect HP server remotly by rlogin command but i am getting error "rcmd : Lost Connection".

I found that deamon "rlogind" is not started. I tried to restart "inetd" deamong but "rlogind" deamon not started even i didn't found any error in any log. I found the following two entry in inetd.conf file.

login stream tcp nowait root /usr/lbin/rlogind rlogind
shell stream tcp nowait root /usr/lbin/remshd remshd

Even the file hosts.equiv and .rhost file is existing in /etc dir.

Can you guys guide me what other i need to check in order to start rlogined deamon.

Thanks
Manish

8 REPLIES 8
Dave Hutton
Honored Contributor

Re: rcmd: Lost Connection

Can you rlogin into the same host from the host? (staying local).

Any firewalls inbetween both servers?

Usually inetd services are spawned at the time of connection. You shouldn't have an rlogind deamon until you have a connection established.

Which version of hpux is this?
Just wondering, my login is a little different:
login stream tcp6 nowait root /usr/lbin/rlogind rlogind

But I don't think thats much of an issue.
rajdev
Valued Contributor

Re: rcmd: Lost Connection

Hi Manish,

Check the contents of /etc/hosts.equiv and
$HOME/.rhosts , does it have the hostname and id of the user ...

hostA root

so hostA should be the host from where you are running the rlogin command and hostnames should be properly resolvable from both the hosts.

Regards,
RD
Prashanth.D.S
Honored Contributor

Re: rcmd: Lost Connection

Hi Manish,

Try chaning the entries to this... and let me know the result.

kshell stream tcp nowait root /usr/lbin/remshd remshd -K
klogin stream tcp nowait root /usr/lbin/rlogind rlogind -K

Restart inetd #inetd -c

Best Regards,
Prashanth
Hasan  Atasoy
Honored Contributor

Re: rcmd: Lost Connection

hi manish ;

both server resolve their ip's and names correctly ?

dould you rlogin by using ip address ?

Hasan.
Kapil Jha
Honored Contributor

Re: rcmd: Lost Connection

Try telnet to the server if it is working.
try using ssh also.
again restart inetd and then rlogin !!!
see if some errors are there while restrting daemons.
BR,
Kapil
I am in this small bowl, I wane see the real world......
Jacques Carriere
Regular Advisor

Re: rcmd: Lost Connection

Check the /etc/passwd file for possible errors associated with the user you want to rlogin to.

You might need to kill first and then restart the services.
Tim Nelson
Honored Contributor

Re: rcmd: Lost Connection

An immediate "Lost Connection" typically is not driven by any of the hosts entries or trusted hosts.equiv or .rhosts. These usually echo a permission denied/refused.

Something like this, if inetd.conf is configured right ( like it is ), may be security related. Are there any rlogin line(s) in /var/adm/inetd.sec ( this file controls IP sevuriity to the services run under inetd ). If there are no entries or ones that contain deny statements then...

Do you use any other security products on this host ?

Telnet or ssh will only prove connectivity exists and that those services are functioning. Not rlogin or other services.

I am also assume the rlogind entry you show from inetd.conf is the only entry in that file for rlogin ? ( once again, remshd is not rlogin and does not apply ).

MANISH PATEL_2
Frequent Advisor

Re: rcmd: Lost Connection

Hi Guys,

Thank you very much for your help.

Because of security enable for that userid. User was not able to rlogin remotely.

Thanks
Manish