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"
===============
1 comment:
Unknown
February 20, 2013 at 4:25 AM
How to use this with capistrano while doing an ssh?
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
How to use this with capistrano while doing an ssh?
ReplyDelete