[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp-default-proxies-alist help
From: |
Michael Albinus |
Subject: |
Re: tramp-default-proxies-alist help |
Date: |
Tue, 14 Mar 2006 12:42:19 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/20.7 (hpux) |
"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.