Editing remote sudo'd files from Emacs

Here’s how you can edit remote sudo-protected files without leaving emacs:

Since Emacs 23.2, eshell has also an own implementation of the su and sudo commands. Both commands change the default directory of the *eshell* buffer to the value related to the user the command has switched to. This works even on remote hosts, adding silently a corresponding entry to the variable tramp-default-proxies-alist (see Multi-hops):

Via: Running eshell on a remote host

Leave a Reply