I know this is an oft-asked question, and I've looked at the mailing list posts as well as several blogs. But nothing I am reading seems to quite work for me.

Here is my situation

(tramp-version t)
2.2.0-pre

(emacs-version t)
GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-09-26 on ubuntu

Now, I can ssh to remotedomain.com as the user 'ubuntu' and when on that machine (because my public key on my local machine is in the .ssh/authorized_keys for that user 'ubuntu'). Then, I can type sudo $EDITOR file.txt and edit a file owned by root

I would like to be able to edit those same files from my local emacs, using some combination of syntax and configuration.

Here is the configuration I tried:

(add-to-list
 'tramp-default-proxies-alist
 '(
   "remotedomain.com"
   "ubuntu"
   "/ssh:[email protected]:"
   )
)

and here is the syntax I tried:

C-x C-v /sudo:[email protected]:/etc/nagios3/conf.d/generic-host_nagios2.cfg


_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to