1832852 Members
2963 Online
110047 Solutions
New Discussion

telnet connection

 
jedd
Advisor

telnet connection

Hi all,
i'm having difficulty with doing a telnet connection to a remote box. I have checked all the knowledge base to no avail. i'm trying to telnet into a very old 735 with HPUX 11.0 on it and gives me "connection closed by foreign host" i can do rlogin and that works fine.
i have checked the services and the inetd.conf and all that seems to be fine. netstat works and telnet is listening.the only thing i haven't tried i think is applying patches and bouncing the box.
6 REPLIES 6
Sachin Patel
Honored Contributor

Re: telnet connection

Hi Jedd,
/etc/services and /etc/inetd.conf file should looks like this respectively.
telnet 23/tcp

telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b /etc/issue

then
/usr/sbin/inetd -c (to reread the new configuration)

Sachin
Is photography a hobby or another way to spend $
Herve BRANGIER
Respected Contributor

Re: telnet connection

Hi,

Which version of HPUX 11.00 u use ?
We had a similar problem with installation of
May 99. We use now 11/99 without any problem.
Patches bundle XSWGR1100,r=B.11.00.47.08
install some patch for telnet and telnetd...

HTH

Herv?


Uday_S_Ankolekar
Honored Contributor

Re: telnet connection

Hi,

Do you have inetd.sec file in remote host..? Then probably you need to input the hostname in the file.

--USA--
Good Luck..
Rob Smith
Respected Contributor

Re: telnet connection

Hi, copy /usr/lbin/telnetd from a box that is not having telnet trouble to the one that is. That is what I have done a couple of times and it worked. Hope this helps.

Rob

Learn the rules so you can break them properly.
Rita C Workman
Honored Contributor

Re: telnet connection

Hi Jed,

Your error msg gave you specific info. It said you connected to the foreign (remote) server and that it closed the connection ! The fact that you mentioned you could rlogin shows that your /etc/passwd file is ok.
So....the problem could be a couple things at this point. Here's some things to try.
First:
Document Id : A5436800
You can find the root cause of the problem using the trace function
of inetd.

Start inetd with the -b option to enable debug mode. This command
will log errors to /var/adm/syslog/syslog.log. In the syslog file,
you will find the following error:

I_PLINK_DEV ioctl failed: Invalid argument

Checking telm and tels shows the following information:

lsdev | grep tel
75 -1 telm strtelm
76 -1 tels strtels

Notice the major number of 75/76.

Now do ll /dev/telnetm:

crw-rw-rw- 1 root sys 72 0x00004b Oct 26 07:44 /dev/telnetm

ll /dev/pts/t*

crw-rw-rw- 1 root root 76 0x000000 May 1416:21 /dev/pts/t0

The files should look similar; however, on the problem system they
are mismatched for major numbers on some of these device files,
specifically the tels(strtels) and pts/t* files.

To resolve the issue, run the following commands:

insf -d tels to create slave devices
insf -d telm to create master device

After running these commands, you will be able to telnet. The command
removes and then reinstalls the proper device files with correct major
numbers.
Second:
Here is an interesting thread from Patrick Wallek, that had a tip:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xaea953921f1ad5118fef0090279cd0f9,00.html
Third:
Make sure your ARPA patches are up to date on that server.....
Last:
Stop your inetd and then restart it....

Just few thoughts,
Rita



jedd
Advisor

Re: telnet connection

Hi everybody thanks for your help.
i've tried all of the above. it seems like when i start my inetd, telnetd won't start.
any reasons why. i've checked all the conf files and it looks okay and the /etc/services file. in the process of applying patches
thanks