[Top][All Lists]

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

Re: edit a file over two linked ssh

From: Michael Albinus
Subject: Re: edit a file over two linked ssh
Date: Sun, 20 Nov 2011 12:14:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

mehran khajavi <address@hidden> writes:

> Hello,


> I have a question: 
> How can I open a file in these steps:
> an Emacs on my client(desktop)
> 2.connect to my server by Emacs with ssh
> 3.connect to my second server with ssh
> the file in the second server
> the problem is that I can not connect from the first server to second
> server over ssh by Emacs
> this command in the find file doesn't work:
> Find file :
> /scpc:address@hidden:scpc:address@hidden/var/www/myfile.txt

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

Then you can open the file as "/ssh:address@hidden:/var/www/myfile.txt".
Note, that the "scpc" method is not suited for multi-hops.

If you take the recent Tramp sources from its CVS repository, you could
use ad-hoc multi-hops:


Best regards, Michael.

reply via email to

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