News for hackers. Stuff that matters.
Re:OpenSSH 9.0 by paskozdilar on Friday April 08, 2022 @08:04AM (#30955889)
A simple unix-like way would be to use tar with plain ssh.

To transfer a set of files from local device to a remote device is as easy as:

    tar -c path/to/file1 path/to/file2 ... | ssh user@hostname tar -x
The flags can be memorized with a mnemonic:

    -c = create (archive file)
    -x = extract (archive file)
Re:OpenSSH 9.0 by chasil on Friday April 08, 2022 @02:16PM (#30960637)
This could bite you on platforms where tar observes absolute links (commercial UNIX comes to mind).

There is wild variation in tar implementations beyond what is required by POSIX.

Re:OpenSSH 9.0 by aidenn0 on Friday April 08, 2022 @02:40PM (#30960914)
I use "gtar" on the command-line in that case; it either fails because gnu-tar is missing, or it works as expected.

"-H pax" is also an important item to specify on the side creating the tar file, as pax support is much older than pax as a default, and the pre-pax default (gnu or USTAR?) has a short enough maximum path length as to have caused me problems in the past.

Re:OpenSSH 9.0 by adolph on Friday April 08, 2022 @11:50AM (#30958736)
Or dd | tar | ssh so you can control the size of compressed data (as in very large files)

https://www.linode.com/docs/guides/copying-a-disk-image-over...