[SOLVED] Problem with login ssh

General support questions
Post Reply
chanphat01001
Posts: 3
Joined: 2014/04/19 03:11:57

[SOLVED] Problem with login ssh

Post by chanphat01001 » 2014/04/19 03:40:25

+I have got an account su and ssh to server from IT department. First, I logon ssh with account ssh -> OK, then I switch to su with su account -> OK.
+I try to create another account by command: # useradd abc, then set pass for the account (example "12345") by command # passwd abc-> OK,
+I try ssh to server with account "abc", and when terminal window require password for ssh, I type pass "12345" -> FAIL.

I try to search google, but I cannot find the reason of the problem, please help me, thanks?


Image

Whoever
Posts: 1361
Joined: 2013/09/06 03:12:10

Re: Problem with login ssh

Post by Whoever » 2014/04/19 05:38:04

What shell is the new user assigned? It might be /bin/false which will not allow ssh logins.

chanphat01001
Posts: 3
Joined: 2014/04/19 03:11:57

Re: Problem with login ssh

Post by chanphat01001 » 2014/04/22 03:44:28

Whoever wrote:What shell is the new user assigned? It might be /bin/false which will not allow ssh logins.
I tried your solution, but It still happened.

drk
Posts: 405
Joined: 2014/01/30 20:38:28

Re: Problem with login ssh

Post by drk » 2014/04/23 00:16:42

Check your /etc/ssh/sshd_config file for "AllowedUsers", "AllowedGroups" or their "Deny" counterparts.

chanphat01001
Posts: 3
Joined: 2014/04/19 03:11:57

Re: Problem with login ssh

Post by chanphat01001 » 2014/04/26 02:30:54

drk wrote:Check your /etc/ssh/sshd_config file for "AllowedUsers", "AllowedGroups" or their "Deny" counterparts.
thanks it worked! :D

Post Reply