From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.help Subject: Re: Dired command on same host Date: Wed, 05 Jan 2022 10:35:22 +0100 Message-ID: <877dbe7cf9.fsf@elite.giraud> References: <877dbf94su.fsf@elite.giraud> <87czl77j7e.fsf@gmx.de> <87iluz79ja.fsf@elite.giraud> <878rvv73mr.fsf@gmx.de> <87k0ffp9mp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15683"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) Cc: help-gnu-emacs@gnu.org, Michael Albinus To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 05 10:37:12 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n52jG-0003q9-6E for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 Jan 2022 10:37:10 +0100 Original-Received: from localhost ([::1]:50228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n52jE-0002qv-Uj for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 Jan 2022 04:37:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n52hm-0002nj-0N for help-gnu-emacs@gnu.org; Wed, 05 Jan 2022 04:35:38 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:19178) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n52hj-00032G-5u; Wed, 05 Jan 2022 04:35:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=hJUD6eb0MueP6nxz 8PhBcDIkLJ3iYFEQZ7m8Rg3bhjs=; h=in-reply-to:date:references:subject: cc:to:from; d=ledu-giraud.fr; b=R/MsgBG6pXirMgg1OIGNct14XZrrB6ZboDTzCW gvNwQGoY6Riya46vLZvjVQO1pEfr0UQbf+j1e43gLWn9CTbSJnqJTsQ/sS8/2qMQc9d6L5 C8g8dForiGEnrJgrU/RedhgZIcXx4qzWlzWSPKXyNh/l2ercd9MbxWRlZ/3RSwyrniaA58 QoBee75vvae1r9zdc+aQdyDn2S/G9Inb3nl7JvzPidgrM41NbGduOPPTF16B/JjZWIEiAV DHs/9coONmrhGYdUwWn1QH9PZlijdxWigxTh33b//5F39E0uc4YlVwWFcGVqySoyALYQt0 4hR/nLIWOoHRV61Dadch3Jzw== Original-Received: from elite.giraud ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id b10bf4cc (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 5 Jan 2022 10:35:23 +0100 (CET) In-Reply-To: <87k0ffp9mp.fsf@gnu.org> (Tassilo Horn's message of "Tue, 04 Jan 2022 20:35:05 +0100") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135100 Archived-At: Tassilo Horn writes: > Michael Albinus writes: > >>> I have in my init a (simple) function that does this out-of-band scp >>> but I think that the most tricky parts (for something general pupose) >>> are: >>> - how host A understand host B name? >>> - is host B reachable from host A? >> >> Must be checked, yes. But this isn't a problem for Tramp. It keeps >> shell sessions on both host A and host B, a simple "ssh -q -o >> ConnectTimeout=3D1 B exit 2>/dev/null" on host A would tell us whether >> host B is reachable > > Sorry if that question just illustrates that I don't know how Tramp > works but: is it ensured that the host B on A is the same as B on my > local machine? Like I could have different hosts defined as B in my > local /etc/hosts and the one on A. AFAIU, tramp relies on ssh here. So you are right that host B on A could be something completely different (configured by means of /etc/hosts or ssh config). In fact, this out-of-band could even do something *wrong*. But I think it could be useful on a =C2=ABreasonable=C2=BB setup. --=20 Manuel Giraud