Chris Withers <[email protected]> writes: > Hi All,
Hi, > I'd like to use tramp to edit files on a remote host, but where I need > to be root to edit the files in question. This shall be possible with Tramp 2.1. Which version do you use? The Tramp 2.1 manual describes your case, for example here: http://www.gnu.org/software/tramp/#Multi_002dhops > I did see some other instructions involving adding stuff to my local > ssh config and then adding separate stuff in my .emacs file, but that > seems an unreasonable amount of work to have to do for each and every > server I ever want to edit a remote file on as root. > > What am I doing wrong and what should I be typing in? If you do not want to add additional configuration to your .emacs, you might use Emacs 23.1.90 (the pretest version of 23.2). Eshell does the multi-hop configuration for you. Example: M-x eshell This opens the eshell buffer. ~ $ cd /ssh:myu...@thehost:/ With this command, you go to the remote host as the user you want to use in transfer. /ssh:myu...@thehost:/ $ sudo ls ... Now Tramp configures silently the sudo command for you. From now on, you can also open files like /sudo:thehost:/ etc. > cheers, > > Chris Best regards, Michael. _______________________________________________ Tramp-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/tramp-devel
