3 ms·
If the machines are on the same network I usually just do this on the receiving machine: nc -l 1234 | pbcopy And on the sending machine pbpaste | nc
by yarcob 6y ago
If the machines are on the same network I usually just do this on the receiving machine:
nc -l 1234 | pbcopy
And on the sending machine
pbpaste | nc receiving-machine.local 1234
(where "receiving-machine.local" is the hostname or IP address of the machine you want to copy data to)
nc (netcat) is installed on macOS by default, so this works everywhere without any configuration. It's unencrypted, but on my private LAN I don't worry about people snooping.
- koolba 6y agoHa! I do the exact same thing. It’s also cross platform as well so great to hop between *nixes and say a Mac. Another trick to send a whole directory to a local machine with no SSH access in either direction is to pipe a tarball into base64, then transport the base64 data as text (via nc or clipboard). On the destination it’s just a “base64 -d” to restore it.
- deleted 6y ago[deleted]
- Fnoord 6y agoUseful in CTF too ;-)
- jzelinskie 6y agoDoing tricks like this over a wireguard network adds to the magic; you get easy nat traversing, encrypted sharing with no intermediary servers.