3 ms·
I use netcat a lot with my friends, we don't even have to do the SSH dance. On the receiving end: nc -vll 0.0.0.0 12345 | pv | tar xv On the sending end:
by Sir_Cmpwn 8y ago
I use netcat a lot with my friends, we don't even have to do the SSH dance.
On the receiving end:
nc -vll 0.0.0.0 12345 | pv | tar xv
On the sending end:
tar cv files... | pv | nc -N "destination IP" 12345
pv is a nice tool that just reports on the rate and number of bytes moving through the pipe, optional if you don't have it. Throw in gpg --symmetric + gpg --decrypt for good measure if you want to encrypt it on the wire with a password.
- zymhan 8y agoThat works assuming the client has a public IP address or port forwarding set up, or you're on a local network together.
- yjftsjthsd-h 8y agoThat throws your files over the wire with no encryption, signing, or integrity verification. It might well be fine for your use, but I don't think I'd ever be comfortable with it.
- Sir_Cmpwn 8y agoDid you miss the part of my comment where I explained how to add encryption?
- yjftsjthsd-h 8y ago...yep, I only read the command itself and skimmed right over that. My bad.