Link to home
Start Free TrialLog in
Avatar of danastasi
danastasi

asked on

Telnet - "Login Incorrect"

I'm running RedHat 6.2. I used to be able to connect to the server via telnet, but now, after I put in my username and password, I just get the "Login Incorrect" error message. I can log in using the same username and password through FTP and other services. Telnet is the only one that doesn't seem to work. I checked all of the basics: account permissions, reinstalled inetd, telnetd, and pamd. Nothing seems to work. Any ideas?
Avatar of Member_2_219317
Member_2_219317
Flag of Brazil image

maybe the /etc/host.deny , /etc/hosts.allow
do not let you telnet acces.
Your are triying telnet from your machine to your machine?
or from remote local to your machine?
(the problems is triying telent from outside only?)

regards,

Luis
Or maybe.....
your password have special caracters?
maybe your program for FTP recognize this caracteres and the telent program not....:-) .....? maybe....

Avatar of moonbeam012200
moonbeam012200

Are you by chance trying to login as root? You may need to add ttys to /etc/securetty.

What happens if while logged on the the machine's console you 'telnet localhost'?
As you said that you used to log in before, and suddenly thing have changed.. I assume that you're not trying to login as root without the changes moonbean suggested... or after some changes in your system.

Check for what users you don't have access anymore... if it's just your account or if it's for all accounts.  as hakimus say see if you can connect from the same machine (ie localhost).

Do you use shadow to store passwords? is this a public (ie directly connected to the internet) machine?  why don't you think if the file who store the password had been cracked.. and now it's no longer in a consistent way.

Have you tried by changing the password as root? or by setting an empty password for that user (by editing by hand the file who stores the password)?


Marcel
ASKER CERTIFIED SOLUTION
Avatar of shlomitb
shlomitb

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of danastasi

ASKER

It was pam.d. Thanks so much!
To answer the rest of your questions, connecting to localhost yielded the same results as from another machine. I do use shadow, but since logins would work using every other service, I figured there wasn't anything wrong with the shadow file. No, I wasn't trying to login through telnet as root. I tried changing the password as root, that didn't work. I tried setting an empty password for the user, THAT WORKED, but it was an unacceptable solution. I also checked host.allow and deny, and everything was normal there. It turned out to be the pam.d problem.

Sorry it took so long for me to respond to this. Thanks, shlomitb!
u r very wellcom !!!!!
i know how hard it is to find the answer to Linux problems .
Open /etc/pam.d/remote with this line:
auth       required   pam_securetty.so

Now comment the above line, it will work :

#auth       required   pam_securetty.so