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 15:37:04 +0100 Message-ID: <87mtka5jvz.fsf@gmx.de> References: <877dbf94su.fsf@elite.giraud> <87czl77j7e.fsf@gmx.de> <87iluz79ja.fsf@elite.giraud> <878rvv73mr.fsf@gmx.de> <87k0ffp9mp.fsf@gnu.org> <874k6i79of.fsf@gmx.de> <87lezu5o9a.fsf@elite.giraud> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32099"; 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, Tassilo Horn To: Manuel Giraud Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 05 16:24:38 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 1n589V-0008Af-HC for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 Jan 2022 16:24:37 +0100 Original-Received: from localhost ([::1]:38692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n589U-0001cD-56 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 Jan 2022 10:24:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n57Pi-00011t-99 for help-gnu-emacs@gnu.org; Wed, 05 Jan 2022 09:37:18 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:55601) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n57PZ-0001AI-Ez; Wed, 05 Jan 2022 09:37:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1641393426; bh=L/r41LZSip9Ol+aYCIGgd3fVCO/hf9c/CuiE4eX4ThE=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=NYm36Z18f/R2NMM75EzpHsF+sfCe7gVvr8Oeewk0eNmB+eZw/xfMdo4uCzEnTkHxx DbZwadkD/OyQMU/mh1KSiud52mGmuaFeNUW4/ttEiA9JlVYrGXomJ9bSNzTbe9z+x3 eGc07F2G8WO/pakz5pDJQE+3sSw9EG5IlsXK3HxI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([79.140.124.237]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N2E1M-1mOesh48f0-013exm; Wed, 05 Jan 2022 15:37:06 +0100 In-Reply-To: <87lezu5o9a.fsf@elite.giraud> (Manuel Giraud's message of "Wed, 05 Jan 2022 14:02:41 +0100") X-Provags-ID: V03:K1:Y/IbKmOIc16aZC3YzqEprRy3xyVstu9mXmXKVxIYFV/AdSfz35p 5ZfJHRRG9zCAlpdJf8OPbZtBREqUmbvcJTZQOXgEfM9HsQSktA1qqiBU48huZsU8WpuMDxM FjuiFBtHGKCYZOi/U5lEvO2KaqJFwAlrJeNagGqX3T8+rFabpO7uQnHDk+fmVkYwQOPJ1Zx Haqlq+Gl2JmiE9G2CYH7A== X-UI-Out-Filterresults: notjunk:1;V03:K0:UujYkdHiYLs=:J3Fh7Vasf3pDsaxdL5R+io 7LinEU2S1AYNgJUd7UiHXvpFnsS2cfHA30brqp0Z3blgsSyH7pFa4vFlGO9lIBt/D2RyMEjUa 1jRj83iqmQDp5WN47UMw3skLqvkHlFEANi6mzvE9Ywy2Nfw2d1UvIy9r1rVNIjDVS81gSKTBz xxXF2wg3nvp+EO/iC62XEvkTAN8dWm4iKQio2xs6jh10Ti2VCVKZ3OoTud/n8l+t6piO+d/BO S+lEDQl3svWEvlR3L8H6n7EkMPhIfB/N44kuDgaCQMTT2MIBHJNNnLzlBa/pthDBwNP60+qoc fPaYIqJ6f2pLqZepNhHawg//3wQGqo7DgFqkI/wOWD+VXBJYyG0R8m/SDZW//0gyHkUiKL4NM deMRVpiKDSdE86kmaZVZOa7F25crCixPlFmBLn56bvvAapBpGqQCG0b06sMrKwk2CN6rY+MWn d1mfhz40XZgtQUSpyTcVPoi7LemV+bNC/nYoABX6nDLZj9hfIw6pGDG9hna3l3xOo6OFLymBD EMJtht/AM0YYFp/vDKb/lSXt42piuGlcE+h97+jddPPO3xpbyl076gr8gpTXUybOC0SgEHmO+ R14oHX9hfUVJ8g47Dipb81kc6rmFCNJEZe64SBO7bVy1SrPnts8v92welWMHEo6KcE2DZyg4u xWaBzCz4NmuEa2PqCQylF/CmLkHaO/sUjJ8dmIL8ovtMxXPBIbIj3Ff9RHi9nrUTHaOao/wOu 2VvIzXi5fFcD/mH2MPd+5eUkdzmXoDoCZK/vog9g67qadKHpZZ5VCs893Om9/v9GcO5qvFrq Received-SPF: pass client-ip=212.227.15.18; 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:135109 Archived-At: Manuel Giraud writes: Hi Manuel, >> 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. > > I've made the same test : scp hostA:/path/to/file hostB:/another/path > and with a relatively large file (1.5 GB) and it works as expected > without filling /tmp. I'm using scp on fairly recent openbsd machine. > > OTOH, the out-of-band method of tramp fills up my /tmp (which is only > 256 MB). So maybe, having tramp out-of-band trying to "scp hostA:old > hostB:new" before relying on other method could be enough without going > to the trouble of out-of-band from hostA to hostB directly? Likely, you're using an older scp version. This behavior has changed in OpenSSH 8.7, see : --8<---------------cut here---------------start------------->8--- * scp(1): this release changes the behaviour of remote to remote copies (e.g. "scp host-a:/path host-b:") to transfer through the local host by default. This was previously available via the -3 flag. This mode avoids the need to expose credentials on the origin hop, avoids triplicate interpretation of filenames by the shell (by the local system, the copy origin and the destination) and, in conjunction with the SFTP support for scp(1) mentioned below, allows use of all authentication methods to the remote hosts (previously, only non-interactive methods could be used). A -R flag has been added to select the old behaviour. --8<---------------cut here---------------end--------------->8--- So Tramp needs even more checks in order to detect what scp supports. Best regards, Michael.