[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: SSHD question



On 13Nov2007 10:11, Joachim Backes <joachim backes rhrk uni-kl de> wrote:
> How to prevent sshd on a remote from executing commands given by "ssh 
> remote_machine <some command>" (AllowGroups and AllowUsers in 
> /etc/sshd_config is only good for/against logging in).

I normally add a "comand=" field to the public key in the target user's
.ssh/authorized_keys file. This is described under "man sshd".
-- 
Cameron Simpson <cs zip com au> DoD#743
http://www.cskk.ezoshosting.com/cs/

You can tune a file system, but you can't tune a fish.
        - tunefs(1) manual entry


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]