[CentOS] SSH Remote Execution - su?

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


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



More information about the CentOS mailing list