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: Tue, 22 Nov 2011 06:33:14 +0100 Message-ID: <87sjlgpvqd.fsf@gmx.de> References: <8762ifujtt.fsf@gmx.de> <871ut1qnkc.fsf@gmx.de> 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 1321940012 10849 80.91.229.12 (22 Nov 2011 05:33:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Nov 2011 05:33:32 +0000 (UTC) Cc: Emacs mailing list To: suvayu ali Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 22 06:33:28 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 1RSiz0-0000SW-5r for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Nov 2011 06:33:26 +0100 Original-Received: from localhost ([::1]:52462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSiyz-0004Qc-Dd for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Nov 2011 00:33:25 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSiyv-0004QV-6x for help-gnu-emacs@gnu.org; Tue, 22 Nov 2011 00:33:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSiyu-0004lL-8A for help-gnu-emacs@gnu.org; Tue, 22 Nov 2011 00:33:21 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:44085) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RSiyt-0004kF-SX for help-gnu-emacs@gnu.org; Tue, 22 Nov 2011 00:33:20 -0500 Original-Received: (qmail invoked by alias); 22 Nov 2011 05:33:17 -0000 Original-Received: from p57BB96F0.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.150.240] by mail.gmx.net (mp043) with SMTP; 22 Nov 2011 06:33:17 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18enUsdYEweif9OeMCZxORziCLgbnyi+HgyN4QX3v pps6gE5uARcivx In-Reply-To: (suvayu ali's message of "Tue, 22 Nov 2011 00:03:40 +0100") 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: GNU/Linux 2.6 (newer, 3) X-Received-From: 213.165.64.23 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:82998 Archived-At: suvayu ali writes: > Hello Michael, Hi, > Sorry forgot to mention that. I have all the ssh settings in my > ~/.ssh/config and tramp-default-method is set to ssh. So always I > connect like this: "C-x C-f /remotehost:/path/to/file". This helps you for the first hop, to publichost. For the next hop, you should have set ~/.ssh/config on publichost. And the last hop needs a proper setting of ~/.ssh/config on intgw. >> (add-to-list 'tramp-default-proxies-alist >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '("remotehost.\+" nil "/ssh:in= tuser@intgw:")) >> (add-to-list 'tramp-default-proxies-alist >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '("intgw" nil "/ssh:publicuser= @publichost:")) >> >> Note, that the order of both forms matters. Now you can open "C-x C-f >> /remoteuser@remotehost1:/path/to/file". > > This doesn't seem to work. Whenever I do this, using ps I can see tramp > tries to connect like this: ssh -l user -e none remotehost. And > obviously the connection times out. > > I tried the following in a minimal Emacs 24 session. > > (require 'tramp) > > (setq debug-on-quit t > tramp-default-method "ssh" > tramp-verbose 6) > > (add-to-list 'tramp-default-proxies-alist > '("remotehost.\+" nil "/ssh:%u@intgw:")) > (add-to-list 'tramp-default-proxies-alist > '("intgw" nil "/ssh:%u@publichost:")) > > Then I tried to open a file like this: C-x C-f /user@remotehost:~/ RET Is it the same user on all three hosts? > After waiting for a while I hit C-g to generate a backtrace (attached). Please send me the reulting debug buffer. Setting tramp-verbose to 9 or 10 might be better. And I would also like to see the value of `tramp-default-proxies-alist'. You can send it off the list. > Thanks, Best regards, Michael.