Question: Is there any way I can verify the integrity of a remotely transferred file? I am currently transferring a large amount of files and folders from an ftp server to another remote server using wget, but I have no way of knowing if the files are corrupt.
Is there any way I can verify the integrity of the transfer, by getting something like the MD5 hash of the remote files? Is there any other file transfer protocol that supports this?

Answer: 
Depending on the tool you use it's possible to automatically hash and verify the downloaded files, the only tool that can do this that comes to mind immediately though is the [DownThemAll!](https://addons.mozilla.org/en-US/firefox/addon/201 "DownThemAll!") addon for Firefox.

What I normally use for situations like this a hash manifest file created by [md5deep](http://md5deep.sourceforge.net/ "md5deep") on Windows, you can use md5sum if you use Linux/UNIX or md5 on OS X.
Using md5deep I CD to the folder containing the files to be transferred and run the command:

```
md5deep -l -r *>manifest.md5

```

On the remote end after transferring the files and manifest you would run the command:

```
md5deep -l -r -x manifest.md5 *

```

And it will show a list of every file that DOES NOT match the hash value in the manifest.
That's a long shot, but if the server supports [php](https://php.net), you can exploit that.

Save the following as a `php` file (say, `check.php`), in the same folder as your `name_of_file.txt` file:

```
<? php
echo md5_file('name_of_file.txt');
php>

```

Then, visit the page `check.php`, and you should get the md5 hash of your file.

Related questions: 

* <https://stackoverflow.com/q/29909233/2657549>
* <https://stackoverflow.com/q/30626006/2657549>
* <https://stackoverflow.com/q/30056566/2657549>