1748014 Members
4806 Online
108757 Solutions
New Discussion юеВ

Weird Telnet problem

 
SOLVED
Go to solution
shasha_1
Super Advisor

Weird Telnet problem

I am trying to login to my two Itanium servers using telnet but it seems that the telnet command doesn't accept my password. I have tried logging in using ssh, Xterminal and rlogin and even tried ftp using the same password and they all worked. I just changed the root password because for strange reasons, I was not able to access the servers using the root account. But now, I cannot use telnet anymore. I have already checked /etc/services and inetd.conf and there's an entry there about telnet. And I don't get a "Connection refused" error, I just think that telnet doesn't accept the password I type. I have tried changing the root password a number of times already but still can't login.
15 REPLIES 15

Re: Weird Telnet problem

Donna,

WHat's the entry for telnet in /etc/inetd.conf look like?

Duncan

I am an HPE Employee
Accept or Kudo
Gopi Sekar
Honored Contributor

Re: Weird Telnet problem


check /etc/securetty this file lists the tty sessions which are allowed for root login. by default these point only to tty1 to tty12 you may have to add /dev/pts/1, /dev/pts/2 entries in order to get it work

Regards,
Gopi
Never Never Never Giveup
Mel Burslan
Honored Contributor

Re: Weird Telnet problem

do you have a file called /etc/securetty on your system with word "console" in it ? If so, root can only login from console directly, no other places will allow direct root login. Try logging in as a regular user and run "su -" command to obtain root privileges.

if your system is trusted and you have exceeded your login retries, you may have to go to the console to unlock root account as well.

hope this helps
________________________________
UNIX because I majored in cryptology...
shasha_1
Super Advisor

Re: Weird Telnet problem


Inetd.conf entry is this:
=================================
telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd

================================

I tried searching for the /etc/securetty file on both servers but it is not existing.
Mel Burslan
Honored Contributor

Re: Weird Telnet problem

can you login as a regular user and then run su - command to get rood privileges with the password failing over your telnet session ?

Also, for ssh and telnet are you using the same terminal emulator ? even if they are the same, are you sure their keyboard mapping profiles are the same for both telnet and ssh ? I have seen strange things happen when keyboard or terminal type set incorrectly. Better check early in the game than later.
________________________________
UNIX because I majored in cryptology...
shasha_1
Super Advisor

Re: Weird Telnet problem

Yes I can login as a regular user and can run su - root successfully.

I am using terminal type HP for both ssh and telnet but only ssh is working. I have checked the keyboard mapping and it is the same.

Re: Weird Telnet problem

Donna,

Probably unconnected, but I never trust the IPv6 implementation on 11.23, so I'd take it out of the equation by changing the line in /etc/inetd.conf. simply replace 'tcp6' with just 'tcp' and then run 'inetd -c' to reload the configuration.

I don't think this is the problem though, as I would expect it to effect other users as well as root.

You could also turn on inetd logging by running inetd -l. Then see if you get any useful messages in the syslog.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
shasha_1
Super Advisor

Re: Weird Telnet problem

Hi,

Turned on inetd logging and this is what I saw in syslog:

Jul 20 14:23:32 wbscsp02 sshd[12768]: Accepted keyboard-interactive/pam for root
from 10.10.21.164 port 3703 ssh2
Jul 20 14:24:12 wbscsp02 inetd[933]: Connection logging enabled
Jul 20 14:24:24 wbscsp02 inetd[12801]: registrar/tcp: Connection from wbscsp02 (
10.10.5.10) at Wed Jul 20 14:24:24 2005
Jul 20 14:24:43 wbscsp02 inetd[12802]: telnet/tcp: Connection from unknown (10.1
0.21.164) at Wed Jul 20 14:24:43 2005
Jul 20 14:25:03 wbscsp02 sshd[12804]: Accepted keyboard-interactive/pam for root
from 10.10.21.164 port 3725 ssh2

What do you make of this?

Re: Weird Telnet problem

Nothing strange in syslog... lets be clear what happens:

- you telnet from another host and get a login prompt, enetr root and hit return, enter the password and it return... then what happens? does it just disconnect or do you get any message at all?

Lets make sure that telnetd isn't something it shouldn't be also... what's the output of 'what /usr/lbin/telnetd'

HTH

Duncan

I am an HPE Employee
Accept or Kudo