Skip to content

Instantly share code, notes, and snippets.

@RafaelPalomar
Last active May 6, 2019 14:27
Show Gist options
  • Save RafaelPalomar/2fddc6c81c754a861603a84770f48189 to your computer and use it in GitHub Desktop.
Save RafaelPalomar/2fddc6c81c754a861603a84770f48189 to your computer and use it in GitHub Desktop.
How to open a remote file with emacs using ssh and sudo #emacs #ssh #sudo

Use emacs to open a file remotely with ssh as sudo

It is possible to chain different protocols to open a file remotely with sudo. Press C-x, C-f as usual and go to ssh:[user]@<host>|sudo:[user]@<host>:/<path>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment