There is one thing I always do on a new system: Remove vim-tiny and nano
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-...