$ nc 192.168.1.4 3000 | pv | tar -zxf -įile Transfer Between Linux Systems Create a Command Line Chat Server $ tar -zcf - debian-10.0.0-amd64-xfce-CD-1.iso | pv | nc -l -p 3000 -q 5Īnd on the receiver/client computer, run the following command to obtain the file. This will run nc in listening mode ( -l flag) on port 3000. Netcat allows you to transfer files between two Linux computers or servers and both these systems must have nc installed.įor example, to copy an ISO image file from one computer to another and monitor the transfer progress (using the pv utility), run the following command on the sender/server computer (where the ISO file exists). Scan for Open Ports in Linux Transfer Files Between Linux Servers The -v option enables verbose mode and -w specifies a timeout for connection that can not be established. Here is an example, the -z option sets nc to simply scan for listening daemons, without actually sending any data to them. It can scan a single or multiple or a range of open ports. Netcat can be used for port scanning: to know which ports are open and running services on a target machine.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |