1833247 Members
2854 Online
110051 Solutions
New Discussion

Re: Telnet issue

 
Gabriel_23
Frequent Advisor

Telnet issue

I am receiving the following message when trying to telnet to a specific server:

"Connection closed by foreign host."

I do receive a login prompt first, but after entering my login id, I receive the message. Not sure what is causing this problem. Please help...

38 REPLIES 38
Paula J Frazer-Campbell
Honored Contributor

Re: Telnet issue

Hi

What emulation are you using?

Try vt100 or wyse60.

Paula
If you can spell SysAdmin then you is one - anon
Dario_1
Trusted Contributor

Re: Telnet issue

Hi!

Does the account you are using exist in the other server?

Regards,

Dario
Gabriel_23
Frequent Advisor

Re: Telnet issue

Emulation is vt100 and account exists on both servers.
Sridhar Bhaskarla
Honored Contributor

Re: Telnet issue

Hi,

This could be due to several reasons. Do ftp, rlogin etc., work?. If so, try ftp and get the syslog.log file onto the localsystem and look at the errors.

Try this. From the console, run the commands

'insf -d tels'
'insf -d telm'

and then try telnet again.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Paula J Frazer-Campbell
Honored Contributor

Re: Telnet issue

Hi

Is a HP server?

What devices are in the path?

Can you telnet to it from another machine?

Is your account set up on the remote server?

Paula
If you can spell SysAdmin then you is one - anon
Paula J Frazer-Campbell
Honored Contributor

Re: Telnet issue

Welcome to THE forum.


Paula
If you can spell SysAdmin then you is one - anon
Gabriel_23
Frequent Advisor

Re: Telnet issue

Server is HP. I can access server via ssh. I can also ftp to this server. Only telnet is giving problem. I have an account defined on the remote server also. Tried using the insf commands, but telnet is still having problems.
Thanks to everybody for all the help so far.
Gabriel_23
Frequent Advisor

Re: Telnet issue

I can not telnet to this server from any other machine. However, I have no problems telneting out from this server
Steven E. Protter
Exalted Contributor

Re: Telnet issue

I've had the problem. Sridar's post will fix it. Give it a try.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Paula J Frazer-Campbell
Honored Contributor

Re: Telnet issue

Hi

Can you stop and restart telnetd on the remote system?

Paula
If you can spell SysAdmin then you is one - anon
Gabriel_23
Frequent Advisor

Re: Telnet issue

Steven,

I tried using the insf commands on the server I am unable to telnet to. However, I am still unable to telnet.
Sridhar Bhaskarla
Honored Contributor

Re: Telnet issue

Hi Gabriel,

First logon to the box using ssh. Do a 'tail -f /var/adm/syslog/syslog.log'.

Then telnet to the box with another session and observe what error you get there in syslog.log. Post the error if you are unable to determine the solution.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Gabriel_23
Frequent Advisor

Re: Telnet issue

I only noticed the telnetd process once I issued the telnet command to the server I need telnet access for. I killed the process on the problem server and re-issued the telnet command, but problem still exist...
Paula J Frazer-Campbell
Honored Contributor

Re: Telnet issue

Gabriel

Are you saying that telnetd only appears when you try to login?

Paula
If you can spell SysAdmin then you is one - anon
Gabriel_23
Frequent Advisor

Re: Telnet issue

Performed real time tail on syslog file and the only message that may be linked to the problem is:

"login: load_modules: no module present"

Not sure if this is related or not.
Gabriel_23
Frequent Advisor

Re: Telnet issue

Paula,

You are correct. I just issued a grep for the telnetd process on the server and there was no telnetd process running.
Paula J Frazer-Campbell
Honored Contributor

Re: Telnet issue

Hi

set telnetd in inetd.conf then:-

inetd -c to re-read its config.

Paula
If you can spell SysAdmin then you is one - anon
Gabriel_23
Frequent Advisor

Re: Telnet issue

Sri,

That's all I could find in syslog.
Sridhar Bhaskarla
Honored Contributor

Re: Telnet issue

OK. You can get more details by running "inetd -b".

Run it. telnet to the box again and post the error.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Gabriel_23
Frequent Advisor

Re: Telnet issue

Paula,

I issued inetd -c after verifying the telnet entry. Still having problems.
Dario_1
Trusted Contributor

Re: Telnet issue

Hi again!

Try the rlogin command to see if you can connect.

rlogin machinename or ip address

What OS version are you running?

Regards,

Dario
Kelli Ward
Trusted Contributor

Re: Telnet issue

Hi,

Also, that ther system you're telneting to has not denied access to the system telneted from in the destinations /var/adm/inetd.sec file

If it has, edit the file to allow access and rerun inetd -c

Good luck,
Kel
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!
Kelli Ward
Trusted Contributor

Re: Telnet issue

Oops, meant the first line to read

"Also, verify that the"

See what happens when you don't reread! ;)

Kel
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!
Gabriel_23
Frequent Advisor

Re: Telnet issue

Sri,

Please see attachment (output from syslog after using inetd -b command)