1826664 Members
2451 Online
109696 Solutions
New Discussion

telnet

 
navin
Super Advisor

telnet

Hi,
I cannot do telnet to a machine(hp J).I can do
ftp ,rlogin to that machine.What is reason?pls
help.
Thanks
Learning ...
20 REPLIES 20
Helen French
Honored Contributor

Re: telnet

Hi Navin,

Check for the daemon 'telnetd' exists

# ps -aef | grep telnetd

HTH,
Shiju
Life is a promise, fulfill it!
A. Clay Stephenson
Acclaimed Contributor

Re: telnet

Hi:

The very first thing to check is whether telnet has been commented out in /etc/inetd.conf on the machine. If so, uncomment it, and then run inetd -c.
If it ain't broke, I can fix that.
Steven Gillard_2
Honored Contributor

Re: telnet

A couple of things to check:

1. Is there a telnetd entry in /etc/inetd.conf?

2. Are there any IP address restrictions configured for the telnet service in /var/adm/inetd.sec?

Regards,
Steve
Helen French
Honored Contributor

Re: telnet

Hi Navin,

Check the file /etc/inetd.conf for 'telnetd' starting options.

Also if you make any changes to that file, then restart inetd

# inetd -c

HTH,
Shiju
Life is a promise, fulfill it!
navin
Super Advisor

Re: telnet

I checked three of your suggestions.Inetd.conf,
inetd.sec are perfect.
If i do ps -ef|grep telnetd is not running
Thanks
Learning ...
Darrell Allen
Honored Contributor

Re: telnet

Hi,

Three things to check:

1 - telnet must be in /etc/services
# grep telnet /etc/services
telnet 23/tcp # Virtual Terminal Protocol

2 - telnet must be in /etc/inetd.conf
# grep telnet /etc/inetd.conf
telnet stream tcp nowait root /usr/lbin/telnetd telnetd

3 - /var/adm/inetd.sec must not deny telnet access from your host

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Helen French
Honored Contributor

Re: telnet

Hi Navin,

If 'ps' reports no telnetd running, that means there are no other user connected to the system through telnet command. The inetd daemon invoked telnetd whenever a request comes.

Can you post the exact error message ? ( eg: connection refused ..etc)

HTH,
Shiju
Life is a promise, fulfill it!
K.Vijayaragavan.
Respected Contributor

Re: telnet

What is the error message you are getting?

Are you doing telnet from a PC?

Ensure telnetd is running on the server by issuing command,
ps -aef | grep telnet

If not running check the /etc/inetd.conf file whether it is enabled or not.

check the /var/adm/inetd.sec file on the system also in additon to the above mentioned activity,

look for entry "telnet allow/deny"
entry. If such entry is there then add/remove your local machine's ip also in it's access list.

If you don't find "telnet allow/deny" entry, just ignore it .

-Vija
"Let us fine tune our knowledge together"
navin
Super Advisor

Re: telnet

The error message

Escape character is '^]'.
Local flow control off
Connection closed by foreign host.

I checked entries in inetd.conf,inetd.sec.Perfect.

Pls help
Learning ...
Helen French
Honored Contributor

Re: telnet

Steven Gillard_2
Honored Contributor

Re: telnet

Check for telnetd error messages in /var/adm/syslog/syslog.log, it's possible that you've run out of psuedo-terminal devices.

# grep telnetd /var/adm/syslog/syslog.log

Regards,
Steve
Helen French
Honored Contributor

Re: telnet

navin
Super Advisor

Re: telnet

The erroe message in /var/adm/syslog/syslog.log

Mar 13 15:04:35 apricot telnetd[1114]: I_LINK_DEV ioctl failed: Invalid argument
Mar 13 15:04:41 apricot telnetd[1124]: I_LINK_DEV ioctl failed: Invalid argument
Mar 13 15:08:18 apricot telnetd[1632]: I_LINK_DEV ioctl failed: Invalid argument
Mar 13 15:52:55 apricot telnetd[1775]: I_LINK_DEV ioctl failed: Invalid argument
Mar 13 16:03:38 apricot telnetd[1880]:

PLs help
Thanks
Learning ...
pap
Respected Contributor

Re: telnet

Hi NAvin,

In the syslog file, found this error:

I_PLINK_DEV ioctl failed: Invalid argument

How to I determine the cause of this problem?

Configuration Info

Operating System - HP-UX
Version - 11.0
Hardware System - HP9000
Series - V225

Solution

This problem is caused by device drivers for telnet with incorrect major or minor numbers.

Use these steps to determine the cause:

1. Use this command to determine the numbers:

lsdev | grep tel

75 -1 telm strtelm
76 -1 tels strtels

2. Notice the major number of 75/76.

3. Now check these files:

a. ll /dev/telnetm

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

b. ll /dev/pts/t*

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

Note: These files should look similar on your system; however, on the problem system, some of the device files were mismatched
for major numbers--specifically the tels(strtels) and pts/t*
files.

To resolve the problem, run these commands:

1. Create slave devices:

insf -d tels

2. Create master devices:

insf -d telm

Hope this helps.

-Piyush
"Winners don't do different things , they do things differently"
jasper_2
Occasional Advisor

Re: telnet

Hi,

Considering all the things you need to check, you can try to check also the following.

1. telnetd version?
to check do:
"what /usr/lbin/telnetd"


2. check your telnet patch
to check do:
"what /stand/vmunix | grep str_telnet"

3. check your system model
to check do:
"model"

4. Check entries at the /etc/.supported_bits


all entries report from #1-4 should consistent including the letter case.

You need to do propatch if they are not consistent.


Hope these could resolve your problem.

thanks.




the chose is yours, we are the product of the choices we make...
K.Vijayaragavan.
Respected Contributor

Re: telnet

Hi,

1)I used to get this error when i telnet to nonstandard ports.

i.e. IF i telnet to port21 which is (ftp port), i used to get that message.

2)try to telnet exactly on port 23 by,
#telnet ip_address 23

3)try to telnet from your system to your same system and see what happens?

So make sure you have this exact entry in your /etc/inetd.conf file,

"telnet stream tcp nowait root /usr/lbin/telnetd telnetd"

4)Make sure you have this exact entry in your /etc/services file,

"telnet 23/tcp #Virtual Terminal Protocol"

5)If possible and if it is not going to impact your work , try rebooting the server.

-K.Vija
"Let us fine tune our knowledge together"
Darrell Allen
Honored Contributor

Re: telnet

I should be more specific. The local system is where /etc/services needs to have telnet defined to use port 23. If it has something else, then telnet will use that port by default.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Calvin Bebermeyer
Occasional Advisor

Re: telnet

I wish I could assign PAP 10 points for his solution to the error given in this thread:
I_LINK_DEV ioctl failed: Invalid argument

I just finished a cold install of 11.00 and ran into this problem. Pap's solution solved it...

thanks,
Calvin
Balaji_3
Advisor

Re: telnet

Hello Sir

Try insf -e in ur root prompt....
and check telnetd service is running or not, by
ps -ef| grep telnetd
The word IMPOSSIBLE itself says that I'MPOSSIBLE