1834499 Members
2679 Online
110068 Solutions
New Discussion

rlogin fails

 
SOLVED
Go to solution
Logan Ramasamy
Occasional Advisor

rlogin fails

I am trying to rlogin into one of my HP-UX servers. It gives

rcmd: connect: tw053s04.wthg.com: Connection timed out failure message. How do I solve this please.
6 REPLIES 6
Patrick Wallek
Honored Contributor
Solution

Re: rlogin fails

On the machine you are trying to rlogin into check the following:

Make sure the following line is in /etc/services and not commented out:

login 513/tcp # remote login

Make sure the following line is in /etc/inetd.conf and not commented out:

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

If either is commented out, or not there, the insert the lines and recycle the inet daemon with the 'inetd -c' command.
Logan Ramasamy
Occasional Advisor

Re: rlogin fails

Both the lines are not commented out. I issued the command inetd -c. It did not solve the problem. nslookup command also do not return the server name/ ip address.
Rita C Workman
Honored Contributor

Re: rlogin fails

Here's one other thought (unlikely, but if you haven't got it fixed yet........).
Since your doing your rlogin to a 'name' you might want to check the following
Do nslookup on name and ip...make sure they are same for this server...Is your DNS server a different box, than check that too.
Double check your /etc/hosts file

Could be something as simple as a typo in any of the above....or maybe even a dup IP floating around somewhere on your network.

Just a thought,
/rcw
Patrick Wallek
Honored Contributor

Re: rlogin fails

If nslookup is failing, then anything that is dependent on DNS to resolve a hostname to an IP address will fail. If you fix your nslookup problem, then your rlogin problem will probably disappear.

Check your /etc/hosts file, and as a workaround you can insert the name and IP address of the host you are trying to log into.

Long term, you need to fix DNS so that you can do an nslookup and have it return the proper value.
Logan Ramasamy
Occasional Advisor

Re: rlogin fails

If I do nslookup hosts, it gives the following msg:

tw053s04 # nslookup tw053s04
*** Can't find server name for address 10.53.1.33: Server failed
*** Can't find server name for address 170.103.101.1: No response from server
*** Default servers are not available
Using /etc/hosts on: tw053s04

looking up FILES
Name: tw053s04
Address: 10.53.1.33

Patrick Wallek
Honored Contributor

Re: rlogin fails

Check your /etc/resolv.conf file and make sure that the DNS servers that are specified in the file are the correct ones. If not, change them.