[CentOS] SSH Remote Execution - su?

Wed Mar 3 21:48:29 UTC 2010
Benjamin Franz <jfranz at freerun.com>

Tim Nelson wrote:
> So, how am I able to remote login using SSH, su to root, then execute a command as root?
>   
You would probably be better off setting up forced-commands-only only 
login for root.  and configuring the /root/.ssh/authorized_keys file 
with the command you want to execute.

-- 
Benjamin Franz