This is more of a fun thing I've done recently to send and receive files from Windows, macOS or Linux directly without the need for a Samba or NFS share.
I'll be using Linux on both ends but none of the hosts is running sshd (or rsyncd for that matter), so no scp or rsync will work. Another option is to use netcat (nc) to listen to one port and send the file from your client.
On the receiving side, set up netcat to listen to a specific port and redirect the output to a file.
Feel free to comment and / or suggest a topic.
I'll be using Linux on both ends but none of the hosts is running sshd (or rsyncd for that matter), so no scp or rsync will work. Another option is to use netcat (nc) to listen to one port and send the file from your client.
On the receiving side, set up netcat to listen to a specific port and redirect the output to a file.
$ nc -l -p 8443 > archive.tar.xz
On the sender side, create a connection to the receiver and read the input from a file. $ nc stealth-falcon.archyslife.lan 8443 < archive.tar.xz
Keep in mind that this communication is not encrypted by default but can be encrypted using these options '--ssl', '--ssl-cert' and '--ssl-key' with appropriate path arguments.Feel free to comment and / or suggest a topic.
Comments
Post a Comment