Possible Duplicate:
Open file via SSH and Sudo with Emacs
I want to open a file using sudo (say, /etc/hosts) on a remote machine connected by ssh using TRAMP on Emacs.
I tried couple of options, but none of them worked. Can anybody tell me how to go about it?
Thank you
C-x C-f /ssh:you@remotehost|sudo:remotehost:/path/to/file RET
– Miletus