Web Hosting Talk







View Full Version : how to give ssh access


stephenn
08-23-2002, 05:46 PM
Hi,

How to give SSH acces to users?

Can you provide the command to do that?

Thanks
Stephen

MikeM
08-23-2002, 06:40 PM
try ssh-add

UH-Matt
08-23-2002, 09:30 PM
edit the shell type next to the username in /etc/passwd

give them /bin/bash instead onf /sbin/nologin

or something similar to that ?

MotleyFool
08-23-2002, 09:37 PM
As su
usermod -s /bin/bash username in Linux

in FreeBSD

RTFM -> man pw! :)

nto a good idea to edit /etc/passwd

UH-Matt
08-23-2002, 09:43 PM
just out of interest, why is it a bad idea to edit /etc/passwd ?
i may have to stop doing this myself if there are any serious drawbacks.

akashik
08-23-2002, 11:32 PM
on a cpanel/redhat server:

ADD: chsh -s /bin/bash client_username
REMOVE: chsh -s /usr/local/cpanel/bin/noshell client_username

JTY
08-23-2002, 11:39 PM
Originally posted by UH-Matt
just out of interest, why is it a bad idea to edit /etc/passwd ?
i may have to stop doing this myself if there are any serious drawbacks.

You shouldn't edit the file directly, because in the event that something else goes to write to it. You'll cause a write collide, which could corrupt the file.

stephenn
08-24-2002, 12:20 PM
Hi,

What is the exact command to give acces to SSH for my
users.

is it the only way to edit /etc/password?


Thanks

akashik
08-24-2002, 12:23 PM
what are you running on your server?

Greg Moore

stephenn
08-24-2002, 12:28 PM
I am running mandrake 2.4.18

mikeknoxv
08-24-2002, 12:44 PM
Have you installed SSH?

stephenn
08-24-2002, 01:07 PM
Yes,

I have installed SSH.


Thanks