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.