From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail
From: jonetsu <jonetsu@teksavvy.com>
Newsgroups: gmane.emacs.help
Subject: Re: tramp multi hop ssh, and shell
Date: Thu, 19 Dec 2019 15:49:12 -0500
Message-ID: <20191219154912.5369b44a@mistral>
References: <DB8PR04MB57867EAF3A57FFD91B3DB67AA3520@DB8PR04MB5786.eurprd04.prod.outlook.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226";
	logging-data="54878"; mail-complaints-to="usenet@blaine.gmane.org"
To: help-gnu-emacs@gnu.org
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 19 21:49:35 2019
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geh-help-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.89)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1ii2jl-000E8E-Qa
	for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Dec 2019 21:49:33 +0100
Original-Received: from localhost ([::1]:47710 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1ii2jk-0001vG-6L
	for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Dec 2019 15:49:32 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41194)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <jonetsu@teksavvy.com>) id 1ii2jU-0001ux-To
 for help-gnu-emacs@gnu.org; Thu, 19 Dec 2019 15:49:18 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jonetsu@teksavvy.com>) id 1ii2jT-0007fJ-8p
 for help-gnu-emacs@gnu.org; Thu, 19 Dec 2019 15:49:16 -0500
Original-Received: from pmta31.teksavvy.com ([76.10.157.38]:11591)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71)
 (envelope-from <jonetsu@teksavvy.com>) id 1ii2jT-0007WP-0A
 for help-gnu-emacs@gnu.org; Thu, 19 Dec 2019 15:49:15 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2FZIwBU4ftd/8e4VMZlHAEBATgBBAQBA?=
 =?us-ascii?q?QIBBwEBgVQCAYIfgUAhEiqNCYgYjw4RiheBewkBAQE6AQIBAYQ6AgIBAQKCGic?=
 =?us-ascii?q?1CA4CEAEBAQQBAQEBAQUEAgJphGtYQhYBhVsBBAE6HCgLCAMJGA8WD0gZgx0Eg?=
 =?us-ascii?q?kgDDiCuWYkMgT0igRQBjCYMgUBAhCQ+hRYChR8Elw9GlzaCPoIKlAInDYImmB6?=
 =?us-ascii?q?rHgI2DYFLcBWDJ1Alm3YmMIEBAQYBAQEVCBMFBQEBjBSBHIIdAQE?=
X-IPAS-Result: =?us-ascii?q?A2FZIwBU4ftd/8e4VMZlHAEBATgBBAQBAQIBBwEBgVQCAYI?=
 =?us-ascii?q?fgUAhEiqNCYgYjw4RiheBewkBAQE6AQIBAYQ6AgIBAQKCGic1CA4CEAEBAQQBA?=
 =?us-ascii?q?QEBAQUEAgJphGtYQhYBhVsBBAE6HCgLCAMJGA8WD0gZgx0EgkgDDiCuWYkMgT0?=
 =?us-ascii?q?igRQBjCYMgUBAhCQ+hRYChR8Elw9GlzaCPoIKlAInDYImmB6rHgI2DYFLcBWDJ?=
 =?us-ascii?q?1Alm3YmMIEBAQYBAQEVCBMFBQEBjBSBHIIdAQE?=
X-IronPort-AV: E=Sophos;i="5.69,333,1571716800"; d="scan'208";a="113975224"
Original-Received: from 198-84-184-199.cpe.teksavvy.com (HELO mistral)
 ([198.84.184.199])
 by smtp13.teksavvy.com with ESMTP; 19 Dec 2019 15:49:13 -0500
In-Reply-To: <DB8PR04MB57867EAF3A57FFD91B3DB67AA3520@DB8PR04MB5786.eurprd04.prod.outlook.com>
X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 76.10.157.38
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
 <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
 <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "help-gnu-emacs"
 <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.help:122073
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/122073>

On Thu, 19 Dec 2019 10:17:51 +0000
Joao Cortes <joaooneillcortes@outlook.pt> wrote:

> When hoping about an ssh gateway, 'tramp' performs a new connection
> each time I call 'compile'.

If before doing any of that you cd to the machine ?  Eg:

M-x cd
sshx:user@machine

Then perhaps open a dired C-x d.  Pick a .c file or anything, then run
M-x compile.

'compile' will take for granted the cd 'directory'.  At least it does
here, and doe snot ask again for a password.

Hope this helps.