Personal and Technical study guide
Tuesday, July 12, 2011
Bash Execute a Remote Command as Sudo
Just difficult for me to remember this thing. This is a way to execute remote command which can executed only using sudo privileges.
ssh -t testuser@testserver "/usr/bin/sudo sh -c w"
February 20, 2013 at 4:25 AM
How to use this with capistrano while doing an ssh?
Post Comments (Atom)
How to use this with capistrano while doing an ssh?ReplyDelete