Knowledge base dedicated to Linux and applied mathematics.
Home > Linux > Tip of the day > How to diff remote files using ssh ?
All the versions of this article: <English> <français>
diff /path/to/file <(ssh RemoteServer 'cat /path/to/file')
You can also use vimdiff hack (do not forget double slash !!!)
vimdiff /path/to/file scp://remotehost//path/to/file
diff <(ssh RemoteServer1 'cat /path/to/file') <(ssh RemoteServer2 'cat /path/to/file')