Skip to content

Instantly share code, notes, and snippets.

@haxney
Created August 19, 2011 01:48
Show Gist options
  • Save haxney/1155808 to your computer and use it in GitHub Desktop.
Save haxney/1155808 to your computer and use it in GitHub Desktop.
Allow "/sudo:host:/etc/stuff" to sudo on a remote host
(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