Added user to CentOS, Updated sshd_config with AllowUsers, Login denied
Posted
by Gregg
on Server Fault
See other posts from Server Fault
or by Gregg
Published on 2010-06-05T00:43:44Z
Indexed on
2010/06/05
6:03 UTC
Read the original article
Hit count: 332
CentOS 5.3. I can SSH into the system as root just fine. Added a user and set their password. They have shell access (/bin/bash). I can su to the account from root just fine. I updated /etc/ssh/sshd_config with:
AllowUsers myNewUser
And restarted sshd: /etc/init.d/sshd restart
When trying to ssh into the server with the new user, I get a permission denied. And yes, I've double and triple checked that I am using the correct password. Any help is appreciated.
© Server Fault or respective owner