tramp-devel
[Top][All Lists]
Advanced

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

Re: Extra ssh jump from whithin host


From: Michael Albinus
Subject: Re: Extra ssh jump from whithin host
Date: Thu, 23 Sep 2004 18:05:09 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/20.7 (hpux)

Ytsen de Boer <address@hidden> writes:

> Dear readers,

Hi,

>   How can I, in emacs, use tramp, to edit a file on that second
> machine? What do I type in the `find file' field? I have no problem
> establishing the first connection, but then the extra ssh jump? Or
> could I make some kind of link?

It depends on the Tramp version you use.

In Tramp 2.0.*, there is the multi-hop method. You would type
something like (Emacs syntax)

  /multi:ssh:address@hidden:ssh:address@hidden:/path/to.file

Since Tramp 2.1.1, this has been replaced by the concept of default
proxies. The same example, you would configure in your .emacs

  (add-to-list 'tramp-default-proxies-alist
               '("machine2" "user2" "/ssh:address@hidden:"))

That reads "If I want to go to host "machine2" as "user2", I must pass
"/ssh:address@hidden:".

Accessing your second host is possible then simply by typing (again,
Emacs syntax)

  /ssh:address@hidden:/path/to.file

>   Cheers,
>
> Ytsen.

Best regards, Michael.





reply via email to

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