|
|
Log in / Subscribe / Register

Deprecating scp

Deprecating scp

Posted Jan 25, 2021 9:44 UTC (Mon) by tconnors (guest, #60528)
Parent article: Deprecating scp

> At this point, it is claimed to work for most basic usage scenarios; some options (such as -3, which copies files between two remote hosts by way of the local machine) are not supported

That would be unfortunate. The only time I've used scp in the past... 15 years(?) is for scp -3.

The alternative is setting up horrible reverse tunnels with ssh, from memory. Yes, I do believe I use this in production at work (because I needed sync of directory trees), but am not about to check because we're about to enter into a public holiday.


to post comments

Deprecating scp

Posted Jan 25, 2021 12:17 UTC (Mon) by mbunkus (subscriber, #87248) [Link] (1 responses)

You can approximate "scp -3" with ssh & tar, without having to use tunnels or anything else, as in:

ssh host1 "tar czf - /path /other/path" | ssh host2 "tar xzfC - /"

Deprecating scp

Posted Feb 5, 2021 19:39 UTC (Fri) by flussence (guest, #85566) [Link]

One could cobble something together with rsync and sshfs (on the sender or both endpoints), which might work out faster if it's a partial copy. It's a bit of a shame rsync doesn't support this mode of operation directly.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds