You are not logged in.

#1 2009-12-02 11:25:15

jernej
Member
Registered: 2008-10-22
Posts: 11

[SOLVED] how to enable ssh access to new user

I have created a new user on arch with "useradd newuser", but the "newuser" is not able to login wit ssh.
I have checked the /etc/passwd, which has this line:
newuser:x:1005:100:newuser,22,111222,111222:/home/newuser:/bin/bash
I restarted ssh and even rebooted machine, checked the folder /home/newuser exists, but I still can't login with newuser. On the other hand I can successfully login with "olduser" which is also a normal user (not root) and member of same group (users)...
What am I missing? What is the procedure for creating a new user that can login with ssh?

Thank you very much!

Jernej

Last edited by jernej (2009-12-02 14:26:46)

Offline

#2 2009-12-02 11:53:34

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] how to enable ssh access to new user

Did you add him to "AllowUsers" in /etc/ssh/sshd_config ?

Offline

#3 2009-12-02 11:54:34

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: [SOLVED] how to enable ssh access to new user

What happens when you try to login? What is the message printed?

Last edited by mikesd (2009-12-02 11:57:09)

Offline

#4 2009-12-02 13:57:54

jernej
Member
Registered: 2008-10-22
Posts: 11

Re: [SOLVED] how to enable ssh access to new user

adding the user to AllowUsers in /etc/ssh/sshd_config solved the issue.
Thank you Ramses de Norre!
Jernej

Offline

#5 2009-12-02 14:06:39

murffatksig
Member
From: Atl
Registered: 2004-05-17
Posts: 358

Re: [SOLVED] how to enable ssh access to new user

If you don't mind, change the subject of your thread to include

[SOLVED]

So other folks with the same issue can easily find an answer.

Thanks


"Oh, they have the internet on computers now."

Offline

Board footer

Powered by FluxBB