| Server IP : 217.160.0.244 / Your IP : 216.73.216.250 Web Server : Apache System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64 User : u100174116 ( 6746176) PHP Version : 8.5.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/proc/self/root/usr/share/doc/netcat-traditional/ |
Upload File : |
Examples
--------
Many examples can be found in /usr/share/doc/netcat-traditional/README.gz. The rest of
this file collects some more that have been contributed by users.
Encrypted File Transfer
(courtesy of Tom Buskey <tom@buskey.name>)
Suppose you have an ssh tunnel, and you want to copy a file to the
remote machine. You could just scp it directly, but that opens up
another connection. The goal is to re-use the existing connection.
You can use netcat to do this:
When you SSH in, add -L 31000:127.0.0.1:31000
On the remote:
nc -lvnp 31000 127.0.0.1 > file
On the local:
nc -v -w 2 127.0.0.1 31000 < file
No extra overhead. TCP takes care of error correction. SSH has
already encrypted the pipe.