Transfer files from Windows to Linux over the network?

Solution 1:

Easiest method is probably going to be SFTP/SCP. You can grab a copy of WinSCP or the Portable version for your windows machine. Then in WinSCP, put the linux machine name as the server (or IP if you can't connect via name). Once connected, navigate to preferred/necessary directories and drag and drop as desired.

For more "permanent" solution, you could install samba on your linux machine and then connect from the windows machine, but that would require learning how to configure samba so that the two systems can connect to each other.

Solution 2:

Another method would be to use a NFS system. Assuming that you have a windows 7 install that is pro or better.

To start you would need to install a couple packages on the linux machine assuming root access. "aptitude install nfs-kernel-server nfs-common portmap" That command would install what you need.

Now you need to edit the file "/etc/exports" to list what you would like to share

/home 192.168.1.0/24 (rw, async, insecure)

Would be a possible entry. The IP address would need to be changed to point to your networks subnet address. The location "/home" would also need to point to the location that you would like to share. Once done with editing the file you will need to save it and run

/etc/exportfs -a

This updates the NFS systems to start sharing the locations listed in the export file.

Now to set Windows to see the share. going to -> run -> cmd should bring up a command prompt.

mount [options] //nfs-server-unc-name/share-name [drive letter]

Replacing nfs-server-unc-name to the ip address of the linux machine and "share-name" to the name of the directory that you are sharing. "drive letter" would be a letter that you would like the linux machine mounted to.

Solution 3:

If you're using Linux for this task, I'd recommend using Samba

Solution 4:

I've had situations where using python3's HTTP-server was the easiest solution. Just cd to the correct folder on the source machine and run python3 -m http.server to open a simple HTTP-server. Then visit the given URL from the target machine and download the file(s).