Operating System - HP-UX
1753843 Members
7935 Online
108806 Solutions
New Discussion юеВ

Telnet issue in HPUX 11.00

 
SOLVED
Go to solution
senthil_kumar_2
Regular Advisor

Telnet issue in HPUX 11.00

Hi All,

I am using HPUX 11.00, and i have configured telnet, rlogin and ftp in /etc/inetd.conf.

All three was working fine.

Some 3 months before i am not able to connect through Telnet by using putty but able to connect by using telnet command available in Windows XP.

Then for past 2 weeks i am not able to connect through Telnet by using telnet command available in Windows XP.

Please find my configuration file:

# vi /etc/inetd.conf

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l-v-o

telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b/etc/security.banner

login stream tcp nowait root /usr/lbin/rlogind rlogind -B /etc/security.banner
shell stream tcp nowait root /usr/lbin/remshd remshd
exec stream tcp nowait root /usr/lbin/rexecd rexecd


14 REPLIES 14
Tingli
Esteemed Contributor
Solution

Re: Telnet issue in HPUX 11.00

Check your syslog.log file, you might find some info there.
Lijeesh N G_1
Respected Contributor

Re: Telnet issue in HPUX 11.00

Hi,

telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b/etc/security.banner <<<===

==>
1)Are you getting the banner(/etc/security.banner ) while trying to do the telnet?
2)Is this file /etc/security.banner is exists??

Reagrds,
LIJEESH N G
OldSchool
Honored Contributor

Re: Telnet issue in HPUX 11.00

"Some 3 months before i am not able to connect through Telnet by using putty but able to connect by using telnet command available in Windows XP."

Well, did you tell PuTTY to use telnet (as it's default is ssh)?

"Then for past 2 weeks i am not able to connect through Telnet by using telnet command available in Windows XP."

Is there a firewall in the mix somewhere that may be filtering (blocking) port 23 / telnet traffic? What error messages do you get when you try it.

Does telnet from anywhere else to the 11.0 box in question work?

Are the XP box and HPUX on the same subnet or different?

Jaime Bolanos Rojas.
Honored Contributor

Re: Telnet issue in HPUX 11.00

senthil,

Whenever you try to connect, what message do you get after usuing the user name and password? Or do you get any prompt at all?

Regards,

Jaime.
Work hard when the need comes out.
R.K. #
Honored Contributor

Re: Telnet issue in HPUX 11.00

Hello Senthil,

What is the error message you are getting when trying to telnet?

Use netstat to check that inetd has read inetd.conf and has opened a socket for port 23 (telnet) and this is in LISTEN status.
# netstat -a |grep telnet

Enable inetd -l and check syslog.log to see if any critical error is logged when telnetd starts.

# lsdev
Look for "tels" and "telm" in the third field.

Check the master driver's device file:
# ll /dev/telnetm

Regds..


Don't fix what ain't broke

Re: Telnet issue in HPUX 11.00

I'm with OldSchool on this one - if telnet works, then PuTTY should work when telnet mode is selected

See the attached picture of the PuTTY configuration dialog - you *did* select telnet/port23 didn't you?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Mel Burslan
Honored Contributor

Re: Telnet issue in HPUX 11.00

I think, there are no spaces between -b and /etc/security.banner and ther should be. Not 100% sure but it wont hurt to change and restart inetd by

inetd -k
inetd -l

after doint this, please login to this server and run

tail -f /var/adm/syslog/syslog.log

as you try to telnet to it from another server to see if your request is even reaching the server.
________________________________
UNIX because I majored in cryptology...
senthil_kumar_2
Regular Advisor

Re: Telnet issue in HPUX 11.00

Hi All,

1)The file " /etc/security.banner " is available.

2)When trying from windowsXP using the command "telnet servername"

I am getting black screen after some time (may 15secs) the command prompt will be seen.

I am not able to see the banner.

3)When trying from Linux:

I am getting following error.

suse10tst:~ # telnet ad002223 23
Trying 143.242.67.10...
Connected to ad002223.
Escape character is '^]'.
Connection closed by foreign host.



4)When trying from other Unix:

I am getting following error

root@lgsna:/root > telnet ad002223
Trying...
Connected to ad002223.
Escape character is '^]'.
Local flow control off
Connection closed by foreign host.



R.K. #
Honored Contributor

Re: Telnet issue in HPUX 11.00

Try doing telnet by using the IP address and not the servername.
Don't fix what ain't broke