tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: editing a file on a remote host as root


From: Chris Withers
Subject: Re: editing a file on a remote host as root
Date: Wed, 30 Dec 2009 19:16:51 +0000
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

Michael Albinus wrote:
Chris Withers <address@hidden> writes:

For this, you need another rule, like

(add-to-list 'tramp-default-proxies-alist
              '(nil "\\`different_user_to_my_local_user\\'" "/ssh:%h:"))
Okay, but how can I make that generic such that I don't need to add a
new rule to my .emacs file every time I have to use a new username to
log into a particular host?

It can be a regular expression. If you know one which matches every user
but the "transit" user you need to jump first, you're done.

I don't follow and also don't see how that solves the problem when the transit username is the same as that of the user on the remote machine.

I have to admit, it's a little bizarre that all this stuff needs doing, why does:

/sudo:address@hidden:/

...or...

/address@hidden:sudo/

...just do what it reads like it should do? Why the need for all the default proxies hackery?

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk




reply via email to

[Prev in Thread] Current Thread [Next in Thread]