From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Dired command on same host Date: Wed, 05 Jan 2022 11:34:40 +0100 Message-ID: <874k6i79of.fsf@gmx.de> 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13186"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org, Manuel Giraud To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 05 11:40:52 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 1n53iu-0003FO-Df for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 Jan 2022 11:40:52 +0100 Original-Received: from localhost ([::1]:47438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n53is-000140-OU for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 Jan 2022 05:40:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n53d3-00044A-2x for help-gnu-emacs@gnu.org; Wed, 05 Jan 2022 05:34:49 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:42461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n53cy-0004lU-5Q; Wed, 05 Jan 2022 05:34:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1641378881; bh=Gp1XKwXHe/VvVj6EmLcPaZQO5TBX1yvFqA6hW/l0zsM=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=QI+Dhd2A+dIWXstr8APHIbNPSRaeOJKdBBlnvK+albP6szJydofg6xBVf6q1f17JD sFTNABzREFWl3Dx10d94OrY7bO32erEq6m34ZT5rhqlmfDcabdojmzJH5sflaczMfE yocp10n+8PSZVbDu7blHBz1JTrQ3uDkh5sI9Tq9A= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([217.70.140.75]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MmULr-1meUNs18y1-00iUvS; Wed, 05 Jan 2022 11:34:41 +0100 In-Reply-To: <87k0ffp9mp.fsf@gnu.org> (Tassilo Horn's message of "Tue, 04 Jan 2022 20:35:05 +0100") X-Provags-ID: V03:K1:gktsdWh0EtBq6yc7YTTS9yLYWXrDZo5RkDxndtttnPQp2fkXRPY BrreUboHfUnPBagLA2L/TPlBy2ZuoRyadlLmEgSI3laWHJrt2SVx5pM3Lu6YYRkwiENQ0dT ax4PWdpcIFLM8zJRz3Ui5UImfmQryCcW3hE/0A/2NJcTZrDyLsvDGRQ7wlU1KlshNbCD6dh ab1+z5FVHA/O4hNu6YADw== X-UI-Out-Filterresults: notjunk:1;V03:K0:ZE/h3IKmwPI=:02qW9bn1GuYUPZWbkGgqCf ZMNcndoS4zr3citePuGxCToWOOCQVZHnTQZB87prRBvyqFDIScWpTu6O/Xa+pbN7liP0HGf4C 9OlvnpeEQFQKufb47Ueppq/14GMLEp7ZsY5tGuzUzSXG+CDB1hWIUELEC1BdpRz4lWxOIvXkF Vv1ay6PZLLs9g2eeIiU61itINkgb4iFbs7Uk6VmiZzOG6mOl47uKtaq0lHPTzuVU54LXKA9zJ 4Ya+GeHav1ebFQ13+HNTT9RfYuucR9Oxui/+1+P0kD9M3n8BKuuca++q1V8fqOc7eJqaajXwW d7ikPWuQfU26VXWkxevgBdKWrzbFpRre0cKy12p96Rr+Q6/Pv7JkYZ0KDwZS3yLBfhEilLxvG PKX+U8h4OQdM24qbCfN5H3B+8pkYQPumzHaKUVmyTJx7OMw81wNM1zDiZ860PubuxJro6ryeZ hCjUpP4UTVQ7938Zn/mBPzghCmspVAtfMdgBRLqXL7SDVgiNDULXGw05IRXkAIypbqBL2toLc bU6ic0b1zk4JplhzxIeBUtioNyjcURb/ql0KO36TxzZoYoV8ZGGJfTmwtn76knKmfuBDtj+Db igY6Nw6aoaGZnHViRND/ZOyQb8CrNMn76Pt61laQb4kWCRT6PxxtkqB72pX2gZaDg2m4uwOoQ SLN2B/ih96E81ObxDfV74T1hvBaV6Z5dZDeBoD/R9iVhN3vh2UgQ59mChdRoNT6HWG8wS+Pad PoOPy39EcuNegjXUyiQqcc86sWeeTO4uobvd8equm9xWds7bacoze/fZsK119C9dZL9qhlv0 Received-SPF: pass client-ip=212.227.15.19; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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:135102 Archived-At: Tassilo Horn writes: Hi Tassilo, >>> 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=1 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. Indeed, this is not guaranteed. So it doesn't make sense to run this check on host B. I've just applied some tests. If I run "scp hostA:/path/to/file hostB:/another/path", scp assumes the "-3" argument by default. That means, it copies the file first from hostA to my local host, and copies then from my local host to hostB - like Tramp does. The difference is, that it keeps the local transfer file in /tmp. In order to force scp to copy directly, it needs the "-R" argument for scp. Another restriction is, that connection from hostA to hostB must be possible in batch mode, w/o interactive authentication. This tells us, that we shall support direct copy between two remote machines in Tramp as opt-in, via a user option to be configured. And the user would be responsible that the restrictions (hostB is the same everywhere, connection from hostA to hostB possible in batch mode) are kept. > Bye, > Tassilo Best regards, Michael.