Hacker News new | ask | show | jobs
by lokedhs 2169 days ago
Well, there is Tramp with the sudo edit method.

To access the remote machine via ssh and then use sudo to root access the files:

    /ssh:user@localhost|sudo:localhost:/path/to/file
This is using the multi-hop solution as explained here:

https://www.gnu.org/software/emacs/manual/html_node/tramp/Ad...

https://emacs.stackexchange.com/questions/17725/how-to-sudo-...