Operating System - HP-UX
1830375 Members
2616 Online
110001 Solutions
New Discussion

Host refusing Telnet connections !!

 
SOLVED
Go to solution
Khalid A. Al-Tayaran
Valued Contributor

Host refusing Telnet connections !!


Hi,

I was working on my HP-UX 11i server when suddenly I lost my telnet connection (I'm using Exceed). The session suddenlt hanged at first therefore I had to close the windows then reopen it.. but I keep getting:

Your connection has been terminated

I did rlogin from another server and managed to login. when doing telnet to that host I get this message:

# telnet neptune
Trying...
Connected to neptune.
Escape character is '^]'.
Local flow control off
Connection closed by foreign host.

What's going wrong?

- all applications are fine
- ping is O.K.

5 REPLIES 5
john korterman
Honored Contributor
Solution

Re: Host refusing Telnet connections !!

Hi,

sounds as if something on neptune is cutting you off deliberately. Do you prevent telnet connctions in /var/adm/inetd.sec?

regards,
John K.
it would be nice if you always got a second chance
Hai Nguyen_1
Honored Contributor

Re: Host refusing Telnet connections !!

Have you just created/edited the file /etc/shells? If so, the login shells you removed prevent you from logging in.

Hai
Jeff Schussele
Honored Contributor

Re: Host refusing Telnet connections !!

Hi Khalid,

This can be caused by numerous things.
What I'd do is turn up logging on inetd for more clues. So run

/usr/sbin/inetd -l

Then rlogin so you have a session open & then attempt another telnet while running
tail -s /var/adm/syslog/syslog.log
in the rlogin session. That should point you to the culprit.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Khalid A. Al-Tayaran
Valued Contributor

Re: Host refusing Telnet connections !!

Yes, you were wright.

We modified an entry in /var/adm/inetd.sec
for a remote server that was not able to connect to this server (neptune), and we forgot to remove it.

Good work. 10 out 10 for John.
Khalid A. Al-Tayaran
Valued Contributor

Re: Host refusing Telnet connections !!


Good solution Jeff.