help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dired command on same host


From: Manuel Giraud
Subject: Re: Dired command on same host
Date: Mon, 10 Jan 2022 17:16:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix)

Michael Albinus <michael.albinus@gmx.de> writes:

> Manuel Giraud <manuel@ledu-giraud.fr> writes:
>
> Hi Manuel,
>
>>> What will it be good for? It copies also via your local tmp directory,
>>> doesn't it?
>>
>> My intent was to use scp default "-3" behaviour when source and
>> destination are remote hosts. Why? Because this behaviour works without
>> filling up my local (small) /tmp directory whereas tramp does. I don't
>> know how it works but it seems that a "scp hostA:file hostB:" does not
>> use /tmp.
>
> Interesting. Honestly, I have no idea where the scp program buffers the
> local temp data. Perhaps it is better to use this, indeed.

Ok, I might have been too bleeding edge on ssh here.

If, I understand the following code correctly:
https://github.com/openbsd/src/blob/33e609bc6fba341792696aa7159aa47556483f0e/usr.bin/ssh/scp.c#L994

It seems that if mode is SFTP, the copy is done from one SFTP connection
to another directly. But, the default to SFTP mode was activated quite
recently:
https://github.com/openbsd/src/commit/88549df51ff400f3bab7dd1ee92d4f6fd526b715#diff-b94bba0ea2aa22d09c30d4c1e41153505d94a5d9cb61fad6823a950c2cf0bb22

And according this: https://www.openssh.com/releasenotes.html, the
default is not SFTP yet in the last release of openssh. So maybe it
could be a method worth having for tramp in the future ;-)

Does a "scp hostA:fileA hostB:" creates a /tmp file on you side?
-- 
Manuel Giraud



reply via email to

[Prev in Thread] Current Thread [Next in Thread]