Compare a remote file with a local file

ssh

ssh user@host cat /path/to/remotefile | diff /path/to/localfile -
click the source code to copy install ssh on any operating system with command-not-found.com