Compare files by using protractor (is not needed SSH or FTP connection). On client use the protractor-cmp-files-client module.
var cmp = require('protractor-cmp-files-server');
cmp.compare();
This module works with protractor-cmp-files-client on client and waits from module protractor-cmp-files-client command.