Created
August 19, 2011 01:48
-
-
Save haxney/1155808 to your computer and use it in GitHub Desktop.
Allow "/sudo:host:/etc/stuff" to sudo on a remote host
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(eval-after-load 'tramp | |
'(progn | |
(add-to-list 'tramp-default-proxies-alist | |
'(nil "\\`root\\'" "/ssh:%h:")) | |
(add-to-list 'tramp-default-proxies-alist | |
'((regexp-quote (system-name)) nil nil)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment