Paul Calnan
Published August 13, 2012

You can use Bash process substitution to diff a local file with a remote file (or two remote files, for that matter).

diff path/to/local/file <(ssh remote-host 'cat path/to/remote/file')