ssh access denied
Howdy all...
I am having a weird issue with ssh. I have a user trying to ssh via putty from a windows server. When he tries to use his account, he keeps getting access denied (I just created his). I temporarily changed my user account password just to have him try that and rule out putty, and he's able to connect with my id. My hosts.allow and hosts.deny are empty. There is an AllowUsers entry in the sshd_config file which I added him to and restarted ssh (service sshd restart). He's still getting access denied with his account, but he can still log in with my user account. I know we should be using key authentication, but I just started here and have not implemented that yet. Any ideas on why I'm getting access denied for his user account? |
What does your auth log say? (/var/log/secure or /var/log/auth*log)
|
secure log shows:
sshd[7638]: Failed password for jsmith from ::ffff:xxx.xx.xx.xx port 1055 ssh2 => I obviously x'd out the ip address and I'm definitely using the correct password they don't have authlog enabled... |
In your ssh conf, try to comment out
Code:
AllowGroups users |
I'm having the EXACT same problem. commented out AllowUsers.. i've created and deleted multiple accounts, but only this one specific account is just flat out getting ACCESS DENIED every time. I'm so tired I've been working on this for hours Idk what to do. this post is kinda a placeholder for possible info by morning... if no response, I'll double post with some extra info too tired now though
|
Perhaps try deleting the .ssh directory for that user and see if that fixes it. Otherwise, I assume ssh is checking the password against /etc/shadow so maybe see if that user has something different than the other users have?
|
hi have you checked by /etc/ssh/sshd_config in the bottom of this file there is a line like
RootPermitlogin no line will be there if it is there then remove this line or comment # and after that restart service sshd and try to login |
Can you post your
Code:
/etc/ssh/sshd_confif file |
I tried commenting out permitrootlogin... nada. Here's a run down of what it looks like to login as the different users(via any ssh client really, but in this case copying out of putty).
Quote:
Quote:
Quote:
Quote:
|
Well, /etc/sshd_config looks OK, as it should since other users can log in OK.
Things to try: Triple check the password is correct! Reset it to something and make sure you can log in directly on the server There's something wrong in the .ssh folder: mv /home/payton/.ssh /home/payton/ssh_backup Check /etc/passwd and /etc/shadow and see if there's any difference between the payton and robert accounts |
@reply
Code:
# Authentication: Code:
PermitRootLogin yes Code:
# Don't read the user's ~/.rhosts and ~/.shosts files Code:
IgnoreRhosts no rest everything seems fine just restart ssh and check..!! |
some malformed demon combination of those two methods seemed to do the trick. thanks!
adding the AllowGroups option stops sshd from working at all. just thought I'd mention.. |
All times are GMT -5. The time now is 10:10 PM. |