rsync…
But I’ll bite - why would I use a non native distro tool for a simple task, when other by default included tools already exist?
You could even use netcat if needed:
Netcat is a command-line network tool used to establish TCP/UDP connections and network analysis. Netcat features include outgoing and incoming connections, TCP or UDP, to or from any ports. It can be used to open local ports, supports file transference between devices. Netcat can be used to...
linuxhint.com
Other cool uses for netcat:
Termbin.com is a command line pastebin - easy way to share your terminal output.
termbin.com
Command line pastebin for sharing terminal output. - solusipse/fiche
github.com