[hackpgh-discuss] Re: Custom Restricted Shell

  • From: James Keener <jim@xxxxxxxxxxxxx>
  • To: hackpgh-discuss@xxxxxxxxxxxxx
  • Date: Sat, 21 Mar 2015 12:49:53 -0400

SSH can limit the commands a user can run if you want them to run a
certain command only and not a shell in general

ssh user@host dbdump

would run the dbdump program, but they wouldn't be able to

ssh user@host cat /etc/passwd

because you didn't allow cat

Jim

On 03/21/2015 09:59 AM, John Lewis wrote:
> Does anybody know how to create a restricted shell? I need to create a
> restricted shell that is extended with a couple of commands so that I
> can do database dumping or file sharing using a protocol not supported
> by rssh without allowing for an interactive login.
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature

Other related posts: