Kirk Strauser <[EMAIL PROTECTED]> writes:

> I was *so* close to understand Tramp 2.1's proxies, but then I lost it.  How
> would I build a list of proxies equivalent to:
>
>     /multi:ssh:[EMAIL PROTECTED]:ssh:[EMAIL PROTECTED]:sudo:[EMAIL 
> PROTECTED]:/

That is a little bit tricky. First attempt would be

(add-to-list 'tramp-default-proxies-alist
             '("\\`protected\\'"
               "\\`kirk\\'"
               "/sudo:[EMAIL PROTECTED]:"))
(add-to-list 'tramp-default-proxies-alist
             '("\\`bastion\\'"
               "\\`kirk\\'"
               "/ssh:[EMAIL PROTECTED]:"))

But this would mean that every local route to root would go this
way. Here you could use the property of the su(do)? methods that they
don't care the hostname. The first rule could be rewritten as

(add-to-list 'tramp-default-proxies-alist
             '("\\`protected\\'"
               "\\`kirk\\'"
               "/sudo:[EMAIL PROTECTED]:"))

Then you simply need to open "/sudo:[EMAIL PROTECTED]:", and you are there.

> I really miss the old multi-hop syntax, even though I mostly understand the
> advantages of the new system.  I'd really love to see a Tramp function to
> convert an arbitrary old-style long path to a proxy list - for migration
> and educational purposes - but I suspect that's dreaming.  :-)

Good idea. Maybe I'll write something like this for the FAQ. But not
before my holidays, which start on Saturday...

Best regards, Michael.


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

Reply via email to