To access the remote machine via ssh and then use sudo to root access the files:
/ssh:user@localhost|sudo:localhost:/path/to/file
https://www.gnu.org/software/emacs/manual/html_node/tramp/Ad...
https://emacs.stackexchange.com/questions/17725/how-to-sudo-...