On Wednesday 24 December 2003 13:17, Patrick Audley wrote: > raptor> hi, Is there a way to run enable some user to run remotely > raptor> via ssh some commands, but forbid him shell access at > raptor> all.. I mean I want to eneble him only : > > Yes, this is very doable. If you man sshd and look for the > section on "AUTHORIZED_KEYS FILE FORMAT" you'll see how to do it. > Basically you can create a key for each command and make it so that > when the user uses that key he can only execute the exact command > specified for that key.
It should be trivial to create a #!/bin/bash wrapper which knows which command the user is allowed to use, and then execute that wrapper with ssh, thus saving the work of having 15 keys per user > > Good Luck, > Patrick. -- [EMAIL PROTECTED] mailing list
