1834208 Members
2007 Online
110066 Solutions
New Discussion

Telnet Problems?

 
Mark MacDonald_2
Occasional Advisor

Telnet Problems?

We have two boxes here running HP-UX 11.00. One is allowing telnet from specified clients (hosts.allow), but the other is not (same hosts.allow file). Is there something besides the hosts.allow file that could prevent a telnet connection from occuring? This is a private LAN, and no firewall is involved.

Thanks.
18 REPLIES 18
Mark Grant
Honored Contributor

Re: Telnet Problems?

Check /etc/inetd.sec

And if it is refusing all telnets, /etc/inetd.conf is a prime suspect.
Never preceed any demonstration with anything more predictive than "watch this"
Patrick Wallek
Honored Contributor

Re: Telnet Problems?

Have you checked inetd security? /var/adm/inetd.sec can be used quite extensively for (dis)allowing services that connect via inetd, which included telnet.
Bryan D. Quinn
Respected Contributor

Re: Telnet Problems?

Hello,

Check your /etc/services file and make sure telnet is not commented out in there for some reason. Also, how are you trying to connect with IP or hostname? If hostname, make sure both hostnames and respective ip addresses are correct in your /etc/hosts files on each box.

-Bryan
G. Vrijhoeven
Honored Contributor

Re: Telnet Problems?

Mark,

Do you get a login prompt?
You clould check if inetd is running, or your /etc/inetd.conf file for typo's

HTH,

Gideon
Mark Grant
Honored Contributor

Re: Telnet Problems?

Apologies, my inetd.sec file is in the wrong place :) Thanks Patrick
Never preceed any demonstration with anything more predictive than "watch this"
Sanjay_6
Honored Contributor

Re: Telnet Problems?

Hi Mark,

Check out this doc from itrc. It may help,

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072157142

The doc id is KBRC00013880

Hope this helps.

Regds
Steve Steel
Honored Contributor

Re: Telnet Problems?

Hi

1)netstat -a |grep telnet
tcp 0 0 *.telnet *.*
LISTEN


This should be there

2) grep telnetd /etc/inetd.conf
telnet stream tcp nowait root /usr/lbin/telnetd
telnetd

needed


3)Patches

4)Name Resolution . can the host telnet to itself

5)look for and remove /etc/securetty if it is there


Show what happens when you try to telnet


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Mark MacDonald_2
Occasional Advisor

Re: Telnet Problems?

You folks are amazingly fast! Okay here goes:

/var/adm/inetd.sec makes no reference to telnet at all.

/etc/inetd.conf is the same on both boxes.

I am trying to connect via IP.

There is no /etc/inetd.sec file.

/etc/services is the same on both boxes.

Still no good!
Mark Grant
Honored Contributor

Re: Telnet Problems?

Do you get a "Connection refused" or do you get a blank nothing and just waiting their for a while?

If the latter, I'd start thinking about routing or name resolution and things like that. If the former, then .... well, hope it's the latter.
Never preceed any demonstration with anything more predictive than "watch this"
Mark MacDonald_2
Occasional Advisor

Re: Telnet Problems?

I just ran "netstat -a | grep -i listen", and port 23 is not listed.
Mark MacDonald_2
Occasional Advisor

Re: Telnet Problems?

I'm getting "Could not open a connection to host on port 23: Connect Failed.
Sanjay_6
Honored Contributor

Re: Telnet Problems?

Hi,

check the /etc/services files on both servers. Also compare the /etc/inetd.conf file on both servers.

Hope this helps.

Regds
RAC_1
Honored Contributor

Re: Telnet Problems?

ps -ef|grep telnetd

Is it running? Do you have it listed in /etc/services and in /etc/inetd.conf?

netstat -a|grep telnet

Anil
There is no substitute to HARDWORK
Mark MacDonald_2
Occasional Advisor

Re: Telnet Problems?

It's listed in services and it's in the inetd.conf, but no it is not running when I netstat.
G. Vrijhoeven
Honored Contributor

Re: Telnet Problems?

Hi Mark,

inetd starts telnet. CHeck if the inetd is running:

ps -eaf | grep inetd.
if not start it #inetd if so restart #inetd -c

HTH,

Gideon
Mark MacDonald_2
Occasional Advisor

Re: Telnet Problems?

I show /usr/sbin/inetd -l running.
RAC_1
Honored Contributor

Re: Telnet Problems?

Post the lines from /etc/services and /etc/inetd.conf.

Post ll /usr/lbin/telnetd.

Anil
There is no substitute to HARDWORK
Mark MacDonald_2
Occasional Advisor

Re: Telnet Problems?

Services:

telnet 23/tcp #Virtual Terminal Protocol

inetd.conf:

telnet stream tcp nowait root /tcb/files/tcp_wrappers/bin/tcpd /usr/lbin/telnetd