PDA

View Full Version : Giving ssh access to a single username


Cynthia
10-23-2005, 01:20 PM
I want to secure ssh root login according to the deftechgroup wiki on that topic (http://www.deftechgroup.com/wiki/index.php/VPS:Getting_Started) .

So, I created an admin user with useradd and added that username to the wheel group. But that username does not have ssh access.

When I create a privileged account, that account has ssh access, but I didn't want to do that in this case.


So, once a username is created, how to do give it shh access?

charles
10-23-2005, 05:00 PM
Hi Cynthia

By default, users added with useradd have a valid shell that allows ssh. Look in /etc/passwd to see what shell this user has, and most likely you'll just need to change it to /bin/bash to allow ssh access. If you have made changes to /etc/ssh/sshd_conf to dissalow ssh access you'll have to add a rule to allow access for that user as well.

hth
charles

Cynthia
10-23-2005, 05:52 PM
Hi Cynthia

By default, users added with useradd have a valid shell that allows ssh. Look in /etc/passwd to see what shell this user has, and most likely you'll just need to change it to /bin/bash to allow ssh access. If you have made changes to /etc/ssh/sshd_conf to dissalow ssh access you'll have to add a rule to allow access for that user as well.

hth
charles

OK, I found the problem. The password was not correctly set.

Thanks for the help.

Cynthia