Operating System - HP-UX
1829533 Members
1609 Online
109992 Solutions
New Discussion

Unable to connect via telnet

 
Attilio Gatto
Occasional Contributor

Unable to connect via telnet

I have a HP 9000 K580 system on which I can not telnet into, I get a WSAECONNREFUSED connection refused by host error - 10061.
I able able to rlogin and ftp into the sytem and can telnet out to another HP 9000
system. Short of rebooting, is there another way of reactivating the telnet listener?

Thank You,
Attilio
8 REPLIES 8
Rick Garland
Honored Contributor

Re: Unable to connect via telnet

inetd -c will run through the services and reread.

Cheryl Griffin
Honored Contributor

Re: Unable to connect via telnet

You can check to see if telnet is still listening on the port with:
# netstat -an |grep 23

A line should display with the following:
tcp 0 0 *.23 *.* LISTEN

Best Wishes,
Cheryl
"Downtime is a Crime."
RikTytgat
Honored Contributor

Re: Unable to connect via telnet

Hi,

You should also check whether telnet is activated on your server by checking its presence in /etc/inetd.conf.

Their might also be a problem with the contents of the file /var/adm/inetd.sec in that it refuses a connection on that specific port from that specific ip address.

Cfr man 4 inetd.sec for more details.

Bye,
Rik
Brian M. Fisher
Honored Contributor

Re: Unable to connect via telnet

The telnetd daemon is started by the Super Daemon inetd. Check you /etc/inetd.conf to make sure the telnet line is not commented out. Also check the /var/adm/inetd.sec to confirm there is not a telnet line dis-allowing your telnet session. If any changes are made to /etc/inetd.conf issue the command inetd -c to force inetd to re-read it's configuration file.

Brian
<*(((>< er
Perception IS Reality
Antoanetta Naghiu
Esteemed Contributor

Re: Unable to connect via telnet

After you've done all those good things recommended above, if still have problem, try to telnet to yourself: telnet .
Is it working? If yes, the problem could be into the remote box or network...(to be more specific: from the command prompt type: telnet_space_dot_enter)
Brian M. Fisher
Honored Contributor

Re: Unable to connect via telnet

To further troubleshoot the problem, on the server turn inetd logging on with: inetd -l

This can be done if inetd is already running.

All telnet connection information will then show up in /var/adm/syslog/syslog.log

To turn logging back off re-issue inetd -l

Brian
<*(((>< er
Perception IS Reality
Dragan Krnic
Frequent Advisor

Re: Unable to connect via telnet

ftp may not allow you to log in if the file /etc/shells is not configured correctly. I'm not sure about telnet (I mostly use rlogin). Just a hint.
Vincente Fernandes
Valued Contributor

Re: Unable to connect via telnet

Try restarting the inetd (/usr/sbin/inetd) daemon using "-l" which will help in troubleshooting also. Check etc/inetd.conf if telnet is disable. Also have a look at /var/adm/inetd.sec to make sure that telnet is not disabled for certain IP address or subnets.