Web Hosting Talk







View Full Version : Adding ssh users


scsi
09-21-2001, 12:36 PM
Hi I've installed openssh, created key for admin and connected to the box by ssh.
How can now allow also other virtual sites to be reached in secure way?
thank in advance

jks
09-21-2001, 04:31 PM
Originally posted by scsi
Hi I've installed openssh, created key for admin and connected to the box by ssh.
How can now allow also other virtual sites to be reached in secure way?
thank in advance

It should work out of the box.

If the user has telnet access on the box (i.e. telnet enabled in the Cobalt GUI) - then he should also be able to ssh in.

mikeknoxv
09-21-2001, 05:43 PM
Originally posted by scsi
Hi I've installed openssh, created key for admin and connected to the box by ssh.
How can now allow also other virtual sites to be reached in secure way?
thank in advance

Yes, simply allowing telnet access for a particular user will grant SSH access.

You may want to disable your telnet server all-together. SSH is much safer.

sbrad
09-21-2001, 06:44 PM
If you disable telnet (HIGHLY recommended), then allowing shell access in the control panel won't do it. Here's a simple fix:
chsh username -s "/bin/bash"

Change username to the user's username. That's it. I only enable it after it has been requested, because most users don't need it.

scsi
09-22-2001, 04:48 AM
hi and thank for suggestions.
Ok I've previously disabled telnet so if I grant shell access by the gui to some vsite it doesn't work.

So I'm going to digit:
chsh username -s "/bin/bash"

In this way I'll grant ssh access for an individual user and not for whole vsite?

cya

microsol
09-22-2001, 05:04 AM
Originally posted by scsi
hi and thank for suggestions.
Ok I've previously disabled telnet so if I grant shell access by the gui to some vsite it doesn't work.


Yes it works. Try adding telnet access to the site and then you ALSO have to enable telnet access to the user (site admin). This way it works EVEN when telnet itself is disabled in the cobalt gui. ;)

scsi
09-22-2001, 05:12 AM
ok I've done and it works....(done as "su")

but 2 question now:
1) how to revert operation (ie how to revoce ssh access for user)
2) how to prevent user exit from his vsite directory?
thank you

microsol
09-22-2001, 05:15 AM
Originally posted by scsi
ok I've done and it works....(done as "su")

but 2 question now:
1) how to revert operation (ie how to revoce ssh access for user)
2) how to prevent user exit from his vsite directory?
thank you

If you do it like i suggested above you'll find it easy to disable it again because it's done throught the gui. ;)

scsi
09-22-2001, 06:01 AM
and what about question 2?