Moving a 13 gig file over sFTP (md5sum fails)

file-transfermd5sftp

Each time I download a big file over sftp, the md5sum on the source machine doesn't match the md5sum I do on the destination machine.

I have a 13gig file on an Ubuntu 12.04 machine with openssh-server running.

I used FileZilla to download that file to my laptop over sftp. However, the file isn't exactly the same after the download completes.

Perhaps the FTP protocol isn't the best choice? Without an external hard-drive handy, what the most certain way I can transfer this file and be certain that the copy I get is exact?

Best Answer

SFTP can actually still suffer from potential issues related to ASCII/binary transmission modes, etc.; I recommend using SCP (Secure Copy, via SSH) instead. If your destination machine is a Windows machine, one of the best clients -- also free -- is the PuTTY binary pscp.exe from http://www.chiark.greenend.org.uk/~sgtatham/putty/.

To copy from the source to destination using pscp.exe, open a Windows command prompt to the location where pscp.exe is saved, and run the following:

pscp.exe [username]@[remote-machine]:[path-to-file] [local-save-location]