Operating System - HP-UX
1820072 Members
2518 Online
109608 Solutions
New Discussion юеВ

Telnet: Connection closed by foreign host.

 
SOLVED
Go to solution
Mike Rightmire
Frequent Advisor

Telnet: Connection closed by foreign host.

I have an HP-UX 11.0 box which is trying to telnet to a specific port on a test server. When it attempts to connect, I get the following messages ...

#telnet 1xx.2xx.xx.xx 28201

Trying...
Connected to 1xx.2xx.xx.xx.
Escape character is '^]'.
Connection closed by foreign host.

When attempting this with a different HP-UX 10.20 box, it seems to connect without difficutly.

Any ideas where to start with this one?

Thanks in advance,
Mike
"If we treated each person we met as if they were carrying an unspeakable burden, we might almost treat each other as we should." Dale Carnegie
3 REPLIES 3
Patrick Wallek
Honored Contributor
Solution

Re: Telnet: Connection closed by foreign host.

Is port 28201 set up on the box you are telnet'ing to? Does it allow telnet connections? That is an unusual port number. If the entries are correct in the inetd.conf and services files, then you might try recycling the inet daemon by doing an 'inetd -c' (assuming this is an HP box).

Another thing to check, again if this is an HP box, is the /var/adm/inetd.sec file. If that file exists, see if you are allowing telnet access from the IP address that you are telnet'ing from.

Mike Rightmire
Frequent Advisor

Re: Telnet: Connection closed by foreign host.

We are able to telnet to the box using that port number (it is a specific setup) from the HP-UX 10.20 box and apparently it is functioning without difficulty. However, we get the error message when trying it from the HP-UX 11 box.

I am the administrator of the machine and I actually have no data to pass through the port so I cannot verify the how and whats, I am only able to successfully get a connection.

Hope this helps. Thanks again!
Mike
"If we treated each person we met as if they were carrying an unspeakable burden, we might almost treat each other as we should." Dale Carnegie
Joseph C. Denman
Honored Contributor

Re: Telnet: Connection closed by foreign host.

Do you have tcpwrapper loaded on the test box. Check your /etc/hosts.allow on the test box to ensure the ip address of the 11.0 system is allowed telnet to the test box.

As stated above, check the inetd.sec on the test box.

...jcd...
If I had only read the instructions first??