SSHD question

Cameron Simpson cs at zip.com.au
Tue Nov 13 19:43:20 UTC 2007


On 13Nov2007 10:11, Joachim Backes <joachim.backes at 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 at 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




More information about the users mailing list