search for: allowedcommand

Displaying 1 result from an estimated 1 matches for "allowedcommand".

Did you mean: allowedcommands
2008 Jan 29
1
Command limiting with SSH keys and password auth ...
...all, I'm trying to do a setup (Centos 4.4), with ssh keys. Ideal is that remote you can enter a limited set of commands with no password "or" you can ssh in with password and get a normal bash prompt. At the moment I have from="::ffff:x.x.x.x",command="/usr/local/bin/allowedcommands.sh" ssh-rsa <restofkey> (allowed commands I do checks for which ones are allowed and will add anything dodgy to check for) in authorized_keys2. This all works with the keys I have, I can do an ssh <server> ls for example (ls being allowed), which works, otherwise it returns nothi...