LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   can't log in over SSH, shows invalid user when they really aren't (https://www.linuxquestions.org/questions/linux-server-73/cant-log-in-over-ssh-shows-invalid-user-when-they-really-arent-839625/)

kevinandrews 10-21-2010 03:59 PM

can't log in over SSH, shows invalid user when they really aren't
 
Recently I started having this problem where most users on the system are unable to log into the system over SSH. Their user name and password is correct, however it shows them as invalid when they are in fact valid. I've tried changing their password but that didn't work. I also tried deleting their account, as well as their home directory, and then recreating the account, but that didn't work. Only root and perhaps one or two other select accounts are able to log in without problems. I even tried a reboot to see if that would fix it, but as I theorized, it wouldn't. I also checked and ensured their home directory was chowned to them, and that they even had a home directory. Any assistance would be greatly appreciated to help me get this issue resolved. As a dsie note, they are showing up as invalid in /vars/logs/auth.log. Running Debian 5.0 Lenny
Thank you.

gilead 10-21-2010 06:20 PM

Can you run the login process again but with verbose output (-v or -vv) and post it here? Can we also see your /etc/ssh/sshd.conf file please? I'm assuming the users can log in locally and it works OK?

Noway2 10-22-2010 04:55 AM

I ran into this problem before at work. I had two similar Linux machines and it turns out that I was trying to access the wrong one. I have also seen similar problems where a change had been made to the domain controller (Windows Server) and the names would resolve incorrectly. I would verify the IP address and host name on both ends as well as double check and DNS / DHCP to make sure that they are still correct.

sleddog 10-22-2010 10:04 PM

Also check to see that each user has a valid shell, e.g., /bin/sh or /bin/bash. If they don't, they won't be able to login. The shell is the last part of the user entry in /etc/passwd:

Code:

[root@server:~] grep sleddog /etc/passwd
sleddog:x:1000:1000::/home/sleddog:/bin/bash


zzyykk 10-23-2010 03:27 AM

Was the sshd daemon running ?
Did you change the sshd port ?
Can you login via local vitrual console ? if so, maybe the firewall setting cause this.
Can the sshd connecting port be seen from other computer ?
And check if the iptables make this happen...

That's the all I know about sshd troubleshooting...
I wish it helps...


All times are GMT -5. The time now is 05:38 PM.