Skip to main content
added 8 characters in body
Source Link
Pablo A
  • 3.2k
  • 1
  • 26
  • 46

If you need to jump through one (or more) proxy servers, OpenSSH v7.3 onward supports a -J.

Considering A → B → C, on hostA, just:

tar cf - file1 file_n | pv | ssh -C -J userB@hostB:portB userB@hostC -p portC 'tar xvf - -C hostC_destination_folder'
  • Use as many hops as you want with ssh's -J option.
  • Omit the tar's remote -C to leave the files on home folder.
  • Send any files at once (text or binary).
  • Increase speed by compressing the stream with ssh's -C (or tar's -z). Particularly useful if the data is plain text (uncompressed).
  • pv monitor the progress of data through a pipe. An alternative could be progress.

Inspired on Florian Fida and Dan Garthwaite's answers.

Here's how to do it with Midnight Commander.

Related project: Magic Wormhole: Get things from one computer to another, safely.

If you need to jump through one (or more) proxy servers, OpenSSH v7.3 onward supports a -J.

Considering A → B → C, on hostA, just:

tar cf - file1 file_n | pv | ssh -C -J userB@hostB:portB userB@hostC -p portC 'tar xvf - -C hostC_destination_folder'
  • Use as many hops as you want with ssh's -J option.
  • Omit the tar's remote -C to leave the files on home folder.
  • Send any files at once (text or binary).
  • Increase speed by compressing the stream with ssh's -C (or tar's -z). Particularly useful if the data is plain text (uncompressed).
  • pv monitor the progress of data through a pipe. An alternative could be progress.

Inspired on Florian Fida and Dan Garthwaite's answers.

Here how to with Midnight Commander.

Related project: Magic Wormhole: Get things from one computer to another, safely.

If you need to jump through one (or more) proxy servers, OpenSSH v7.3 onward supports a -J.

Considering A → B → C, on hostA, just:

tar cf - file1 file_n | pv | ssh -C -J userB@hostB:portB userB@hostC -p portC 'tar xvf - -C hostC_destination_folder'
  • Use as many hops as you want with ssh's -J option.
  • Omit the tar's remote -C to leave the files on home folder.
  • Send any files at once (text or binary).
  • Increase speed by compressing the stream with ssh's -C (or tar's -z). Particularly useful if the data is plain text (uncompressed).
  • pv monitor the progress of data through a pipe. An alternative could be progress.

Inspired on Florian Fida and Dan Garthwaite's answers.

Here's how to do it with Midnight Commander.

Related project: Magic Wormhole: Get things from one computer to another, safely.

Mentioned related project
Source Link
Pablo A
  • 3.2k
  • 1
  • 26
  • 46

If you need to jump through one (or more) proxy servers, OpenSSH v7.3 onward supports a -J.

Considering A → B → C, on hostA, just:

tar cf - file1 file_n | pv | ssh -C -J userB@hostB:portB userB@hostC -p portC 'tar xvf - -C hostC_destination_folder'
  • Use as many hops as you want with ssh's -J option.
  • Omit the tar's remote -C to leave the files on home folder.
  • Send any files at once (text or binary).
  • Increase speed by compressing the stream with ssh's -C (or tar's -z). Particularly useful if the data is plain text (uncompressed).
  • pv monitor the progress of data through a pipe. An alternative could be progress.

Inspired on Florian Fida and Dan Garthwaite's answers.

Here how to with Midnight Commander.

Related project: Magic Wormhole: Get things from one computer to another, safely.

If you need to jump through one (or more) proxy servers, OpenSSH v7.3 onward supports a -J.

Considering A → B → C, on hostA, just:

tar cf - file1 file_n | pv | ssh -C -J userB@hostB:portB userB@hostC -p portC 'tar xvf - -C hostC_destination_folder'
  • Use as many hops as you want with ssh's -J option.
  • Omit the tar's remote -C to leave the files on home folder.
  • Send any files at once (text or binary).
  • Increase speed by compressing the stream with ssh's -C (or tar's -z). Particularly useful if the data is plain text (uncompressed).
  • pv monitor the progress of data through a pipe. An alternative could be progress.

Inspired on Florian Fida and Dan Garthwaite's answers.

Here how to with Midnight Commander.

If you need to jump through one (or more) proxy servers, OpenSSH v7.3 onward supports a -J.

Considering A → B → C, on hostA, just:

tar cf - file1 file_n | pv | ssh -C -J userB@hostB:portB userB@hostC -p portC 'tar xvf - -C hostC_destination_folder'
  • Use as many hops as you want with ssh's -J option.
  • Omit the tar's remote -C to leave the files on home folder.
  • Send any files at once (text or binary).
  • Increase speed by compressing the stream with ssh's -C (or tar's -z). Particularly useful if the data is plain text (uncompressed).
  • pv monitor the progress of data through a pipe. An alternative could be progress.

Inspired on Florian Fida and Dan Garthwaite's answers.

Here how to with Midnight Commander.

Related project: Magic Wormhole: Get things from one computer to another, safely.

Minor fixes
Source Link
Pablo A
  • 3.2k
  • 1
  • 26
  • 46

If you need to jump through one (or more) proxy servers, OpenSSH v7.3 onward supports a -J.

Considering A → B → C, on hostA, just:

tar -cf - file1 file_n | pv | ssh -C -J userB@hostB:portB userB@hostC -p portC 'tar -C hostC_destination_folderxvf -xvf -'C hostC_destination_folder'
  • Use as many hops as you want with ssh's -J option.
  • Omit the tar's remote -C to leave the files on home folder.
  • Send any files at once (text or binary).
  • Increase speed by compressing the stream with ssh's -C (or tar's -z). Particularly useful if the data is plain text (uncompressed).
  • pv monitor the progress of data through a pipe. An alternative could be progress.

Inspired on Florian Fida and Dan Garthwaite's answers.

Here how to with Midnight Commander.

If you need to jump through one (or more) proxy servers, OpenSSH v7.3 onward supports a -J.

Considering A → B → C, on hostA, just:

tar -cf - file1 file_n | pv | ssh -C -J userB@hostB:portB userB@hostC -p portC 'tar -C hostC_destination_folder -xvf -'
  • Use as many hops as you want with ssh's -J option.
  • Omit the tar's remote -C to leave the files on home folder.
  • Send any files at once (text or binary).
  • Increase speed by compressing the stream with ssh's -C (or tar's -z). Particularly useful if the data is plain text (uncompressed).
  • pv monitor the progress of data through a pipe. An alternative could be progress.

Inspired on Florian Fida and Dan Garthwaite's answers.

Here how to with Midnight Commander.

If you need to jump through one (or more) proxy servers, OpenSSH v7.3 onward supports a -J.

Considering A → B → C, on hostA, just:

tar cf - file1 file_n | pv | ssh -C -J userB@hostB:portB userB@hostC -p portC 'tar xvf - -C hostC_destination_folder'
  • Use as many hops as you want with ssh's -J option.
  • Omit the tar's remote -C to leave the files on home folder.
  • Send any files at once (text or binary).
  • Increase speed by compressing the stream with ssh's -C (or tar's -z). Particularly useful if the data is plain text (uncompressed).
  • pv monitor the progress of data through a pipe. An alternative could be progress.

Inspired on Florian Fida and Dan Garthwaite's answers.

Here how to with Midnight Commander.

Minor fix
Source Link
Pablo A
  • 3.2k
  • 1
  • 26
  • 46
Loading
Minor fix
Source Link
Pablo A
  • 3.2k
  • 1
  • 26
  • 46
Loading
added 75 characters in body
Source Link
Pablo A
  • 3.2k
  • 1
  • 26
  • 46
Loading
Added pv
Source Link
Pablo A
  • 3.2k
  • 1
  • 26
  • 46
Loading
Source Link
Pablo A
  • 3.2k
  • 1
  • 26
  • 46
Loading