Preferences

Between Unix-based machines on the same network my go-to is netcat.

  receiver$ nc -l 2000 > file
  sender$ nc receiver 2000 < file
I usually check MD5 sums when I’m done.

SCP. simply for the encrypted transmission, and most *nix machines have ssh
It does require having an account on both machines though. I've used nc in situations where one machine is owned by someone else.
Ssh with tar is handy for multiple files. Just be careful you're sending and receiving from the right place. Similar for rsync.

(cd /right/place && tar -cf - patt*) | ssh remote '(cd /dest && tar -xvf -)'

Of course, you can also use the compression flags with tar.

Could easily introduce compression too:

  receiver$ nc -l 2000 | zcat > file
  sender$ nc receiver 2000 < $(cat file | gzip -f)
But probably something like `rsync -azvP` will be much better in every way yet still quite portable and prevalent.
Looks like you've got the receiver and sender commands reversed. The sender should use input redirection (< file) to read the file and the receiver should use output redirection (> file) to save the file.
Look again. :) That's how I have it.

This item has no comments currently.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal