Mailinglist Archive: opensuse-security (49 mails)

< Previous Next >
Re: [opensuse-security] Restrict ssh command execution
  • From: Boyan Tabakov <blade.alslayer@xxxxxxxxx>
  • Date: Sat, 16 Dec 2006 17:25:37 +0200
  • Message-id: <200612161725.43953.blade.alslayer@xxxxxxxxx>
On 16.12.2006 16:56, Martti Laaksonen wrote:
> You might want to look into using public keys for user authentication
> and setting some options to a specific key(s) in ~/.ssh/
> authorized_keys file.
> There's more info in sshd's man page (paragraph Authorized_keys file
> format), but basically you can restrict a specific public key to
> execute only a certain command by placing command="command_name"
> option before the public key data in the authorized_keys file.

Thank you too! This sounds like the thing I need exactly. I am currently doing
the same by a bash script, set as the default user's shell that checkes if
the command is the one I allow. But this is already build-in, so I'll switch
to it! Thanks...

Blade hails you...

Farewell - no words to say
Beside the cross on your grave
And those forever burning candles
< Previous Next >