Operating System - HP-UX
1821051 Members
2617 Online
109631 Solutions
New Discussion юеВ

Could not open a connection to host on port 23 : Connect failed

 
Nikee Reddy
Regular Advisor

Could not open a connection to host on port 23 : Connect failed

Hello,

Due to some reason, we are unable to connect to the server using the telnet nor the rlogin.

How to correct this problem?

Thank you,
Nikee
11 REPLIES 11
Noble Sebastian
Frequent Advisor

Re: Could not open a connection to host on port 23 : Connect failed


Hi Srinikesh,

U can check network ..?
give me flowing answer ..

1 How to server conneted telnet .?

2 server it self working
3 network have firewall

rever back

Noble
Nikee Reddy
Regular Advisor

Re: Could not open a connection to host on port 23 : Connect failed

Hello Noble,

The system is running fine. The Orcale and SAP systems are also up and runnong on this server.

Around 100 users are connected as well.

We do not see any network issues at all and the server is inside the netwrok.

Thank you,
Nikee
A. Clay Stephenson
Acclaimed Contributor

Re: Could not open a connection to host on port 23 : Connect failed

Well, the possible reasons are legion. I would start by examining the "exec" and "telnet" entries in /etc/inetd.conf. They could be commented out. If so, uncomment them and execute "inetd -c". Can you ping this box? If so but nothing else works (telnet, rlogin, ftp ...) then its likely the that inetd daemon has died and needs to be restarted.

If it ain't broke, I can fix that.
Basheer_2
Trusted Contributor

Re: Could not open a connection to host on port 23 : Connect failed

Hi Nikee

can you login to console or gsp and then


1) make sure telnetd daemon is working on the servers your ar trying to connect

2) see if you can connect using ssh

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

4) $ grep telnet /etc/services
telnet 23/tcp # Virtual Terminal Protocol
Torsten.
Acclaimed Contributor

Re: Could not open a connection to host on port 23 : Connect failed

All 100 users are connected with telnet?

How about the maxusers value?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Nikee Reddy
Regular Advisor

Re: Could not open a connection to host on port 23 : Connect failed

Naaaaa..

100 users connected using SAP application.

Thank you,
Nikee
A. Clay Stephenson
Acclaimed Contributor

Re: Could not open a connection to host on port 23 : Connect failed

What are your current settings of npty, nstrpty, and nstrtel?
If it ain't broke, I can fix that.
Nikee Reddy
Regular Advisor

Re: Could not open a connection to host on port 23 : Connect failed

Hello,

Where can find the settings for the following parameters?
npty, nstrpty, and nstrtel..

As far as I know, we haven't changed any values..They all have Default values..

Thank you,
Nikee
Dennis Handly
Acclaimed Contributor

Re: Could not open a connection to host on port 23 : Connect failed

>Where can find the settings for the following parameters?
npty, nstrpty and nstrtel

You can grep the result of kmtune(1m) (11.11) or kctune(1m) (11.23 and on).
Nikee Reddy
Regular Advisor

Re: Could not open a connection to host on port 23 : Connect failed

Hello All,

Is there a way to restart the following daemons?

telnet
rlogin

Thank you,
Nikee
Torsten.
Acclaimed Contributor

Re: Could not open a connection to host on port 23 : Connect failed

They are started by inetd. see 3. post.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!