LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't get ssh access for new user (https://www.linuxquestions.org/questions/linux-newbie-8/cant-get-ssh-access-for-new-user-4175423182/)

Reignfire 08-21-2012 03:11 AM

Can't get ssh access for new user
 
Hi,

After i created a new user i tried to login with ssh but it failed.

I did:

Code:

useradd name
passwd name

mkdir /home/name
chown name:users /home/name

Then when i SSH i get the following:

Code:

debug3: packet_send2: adding 64 (len 60 padlen 4 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.

I also added the user to allowusers on sshd_config. What did i do wrong?

evo2 08-21-2012 03:25 AM

Hi,

I can't see anything obviously wrong with your setup. You should check what sshd is logging, this will typically provide more useful information than the ssh cclient. On a Debian derived system this would be in /var/log/auth.log

A couple of other things to check: can you confirm that sshing the same way works with an "old" user? Also, are you able to log in locally (or su -l to) with the new user?

Evo2.

Reignfire 08-21-2012 03:39 AM

It's okay now, it thought i didn't had to reload the ssh service but that made it work.

Quote:

Originally Posted by evo2 (Post 4759873)
Hi,

I can't see anything obviously wrong with your setup. You should check what sshd is logging, this will typically provide more useful information than the ssh cclient. On a Debian derived system this would be in /var/log/auth.log

A couple of other things to check: can you confirm that sshing the same way works with an "old" user? Also, are you able to log in locally (or su -l to) with the new user?

Evo2.


evo2 08-21-2012 03:44 AM

Hi,

Quote:

Originally Posted by Reignfire (Post 4759884)
It's okay now, it thought i didn't had to reload the ssh service but that made it work.

Ahh, yes that would happen if you already had AllowUsers line in your sshd_config

Anyway, glad it is working.

Evo2.


All times are GMT -5. The time now is 07:38 PM.