How best to transfer files between two machines on the network (round-trip)? I use PSCP.
4 answers
There are many ways to do this:
- Scp . The most correct method, because SSH is on almost any Linux machine. The protocol is very stable.
- FTP . Plus - this is almost a standard Internet protocol. It works stably, supports resuming. Cons: bad friends with national coding, requires additional settings for work, it is very desirable to put a client like FileZilla. In addition, FTP does not allow to throw files into an arbitrary directory on the server.
- SMB / CIFS. Some solid minuses, but standard in Windows, and that is relative, because There are lots of nuances.
- NFS . I suppose it will be difficult to set up, screwing to Windows is difficult, but possible, but is it necessary?
- You can also run any IM client (for example, skype, icq) on each of the machines and transfer files through it. Disadvantages - you need to have open sessions on both PCs at the same time (via RDP), the security of IM protocols is questionable (QIP generally uploads files to its server and only then gives a link to download to the other party). From potential advantages - the same QIP (old) can download files directly between computers. Those. You can get the maximum download speed. On the other hand, if the connection goes through And-no, then the speed will be low.
- other
I’ll probably add that you can use a ready-made Apache on Lunux. It is installed in almost all distributions. Pros - direct connection, easy setup, 100% supported by any browser. Cons - need a third-party script to upload files to the server. The rest is not significant.
Well, IMHO does not agree that "SMB / CIFS. Some solid minuses." I myself have been using fruit for a long time. In closed networks - a great way out. If there is no experience of setting up or reluctance to mess around - set up via Webmin
If you need to quickly transfer a small file, you can use the python features:
- cd / folder_with_my_file
- python -m SimpleHTTPServer
- from another machine, connect to the browser (port 8000) and pick up the file
For such purposes, Samba is very convenient, which allows you to access network drives via SMB / CIFS protocol. The network has many descriptions of its installation and configuration. For example: Samba configuration .