[Top][All Lists]

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

Re: tramp-default-proxies-alist help

From: Ned Ludd
Subject: Re: tramp-default-proxies-alist help
Date: Tue, 14 Mar 2006 08:48:13 -0500

That's a beautiful thing Michael.  Works like a charm.  Thank you.

The "'" thing I was not sure about.  One example in section 5.7 of the Tramp User Manual has this at the end of the regexp.  Must be a typo....


On 3/14/06, Michael Albinus <address@hidden> wrote:
"Ned Ludd" <address@hidden> writes:

> I have the following, but it does not seem to work: it connects to host1,
> and then tries to jump directly to host4:
> (add-to-list 'tramp-default-proxies-alist '("\\." nil "/ssh:host1:"))
> (add-to-list 'tramp-default-proxies-alist '("host2'" nil "/ssh:host1:"))
> (add-to-list 'tramp-default-proxies-alist '("host3'" nil "/ssh:host2:"))
> (add-to-list 'tramp-default-proxies-alist '("host4'" nil "/ssh:address@hidden
> :"))

What are the "'" characters good for in the host regexp's?

Furtheron, your first regexp means "for all hostnames containing a '.'
hop via host1". But you must say it the other side, from the end: "for
all hostnames containing a '.' hop via host4". I would use this:

;; My final way to freedom is host4
(add-to-list 'tramp-default-proxies-alist '("\\." nil "/ssh:host4:"))
;; I must pass address@hidden in order to reach host4
(add-to-list 'tramp-default-proxies-alist '("host4" nil "/ssh:address@hidden:"))
;; I must pass host2 in order to reach host3
(add-to-list 'tramp-default-proxies-alist '("host3" nil "/ssh:host2:"))
;; I must pass host1 in order to reach host2
(add-to-list 'tramp-default-proxies-alist '("host2" nil "/ssh:host1:"))

> Can you help?
> -----
> Ned Ludd

Best regards, Michael.

Ned Ludd
reply via email to

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