LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-21-2010, 03:59 PM   #1
kevinandrews
LQ Newbie
 
Registered: Mar 2010
Location: Farmington Hills, MI
Distribution: Ubuntu 11.10
Posts: 5

Rep: Reputation: 0
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.
 
Old 10-21-2010, 06:20 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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?
 
Old 10-22-2010, 04:55 AM   #3
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
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.
 
Old 10-22-2010, 10:04 PM   #4
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
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
 
Old 10-23-2010, 03:27 AM   #5
zzyykk
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Audit Log - Invalid User jaypas Linux - Newbie 2 08-12-2010 10:14 PM
How do I prevent a user from being able to log into ssh? scooper Solaris / OpenSolaris 3 04-08-2009 10:50 AM
mandriva shows me a blue screen (can't log in).........HELP playa4real Mandriva 10 07-01-2007 03:34 AM
squirremail ...it says invalid user or invalid password. rnj Fedora 9 10-25-2004 09:56 PM
iptables - I added a second nic and cannot ssh to it. Log shows a potential problem. ForumKid Linux - Security 12 01-18-2002 09:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration