From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: edit a file over two linked ssh Date: Sun, 20 Nov 2011 12:14:38 +0100 Message-ID: <8762ifujtt.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1321787696 644 80.91.229.12 (20 Nov 2011 11:14:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Nov 2011 11:14:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: mehran khajavi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 20 12:14:53 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RS5MJ-0003Fa-Os for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Nov 2011 12:14:51 +0100 Original-Received: from localhost ([::1]:38266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RS5MJ-0004Lt-1m for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Nov 2011 06:14:51 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:54440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RS5MF-0004Ln-3P for help-gnu-emacs@gnu.org; Sun, 20 Nov 2011 06:14:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RS5MD-0006mz-TM for help-gnu-emacs@gnu.org; Sun, 20 Nov 2011 06:14:47 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:39209) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RS5MD-0006mt-A3 for help-gnu-emacs@gnu.org; Sun, 20 Nov 2011 06:14:45 -0500 Original-Received: (qmail invoked by alias); 20 Nov 2011 11:14:41 -0000 Original-Received: from p57BB81AE.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.129.174] by mail.gmx.net (mp066) with SMTP; 20 Nov 2011 12:14:41 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX198QWIKNJB8TdJn2OyP5J1USF38WCA40c+bM+Wglf MQR3hszaLpn28Y In-Reply-To: (mehran khajavi's message of "Sun, 20 Nov 2011 11:40:20 +0330") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82978 Archived-At: mehran khajavi writes: > Hello, Hi, > I have a question:=C2=A0 > How can I open a file in these steps: > 1.open an Emacs on my client(desktop) > 2.connect to my server by Emacs with ssh > 3.connect to my second server with ssh > 4.open 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:root@myfirstserver:scpc:root@mysecondserver/var/www/myfile.txt (add-to-list 'tramp-default-proxies-alist '("mysecondserver" "root" "/ssh:root@myfirstserver:")) Then you can open the file as "/ssh:root@mysecondserver:/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: "/ssh:root@myfirstserver|ssh:root@mysecondserver:/var/www/myfile.txt" Best regards, Michael.