CentoOS SSH Access

Posted by Rodrigo on Server Fault See other posts from Server Fault or by Rodrigo
Published on 2012-12-12T16:01:43Z Indexed on 2012/12/12 17:06 UTC
Read the original article Hit count: 199

Filed under:
|
|
|

I'm executed this commands with root user i'm on a CentOS 6.3 server:

#useradd newuser
#passwd newuser

#visudo

then I added this line at end of file:

AllowUsers newuser

#service sshd restart
#exit

Now, I can't access server with deployer or root user! Both accounts return:

**Permission denied, please try again.**

Any suggestions?

EDIT: Why add AllowUsers newuser dont allows newuser to login by ssh?

© Server Fault or respective owner

Related posts about centos

Related posts about ssh