SSH-DIFF(1) User Commands SSH-DIFF(1)

ssh-diff - diff a file over ssh

Usage: ssh-diff [OPTIONS] FILE [user@]hostname[:FILE]
There is an extra roundtrip to the remote system to check for the existence of the file to be diffed. So if you are not using SSH Keys you may get prompted twice for a password.
Use "CHECK_REMOTE_FILE_EXISTS=NO ssh-diff" to disable that behavior
Diff Options:
All options your local diff command supports ( except '-r' ). See 'man diff' and 'diff --help' for more information.
SSH Options:
-4
Use IPv4 only
-6
Use IPv6 only
Port to connect to on the remote host. This can be specified on a per-host basis in the configuration file.
Examples:
Default:
ssh-diff /etc/hosts 192.168.1.10
ssh-diff /etc/hosts root@192.168.1.10
ssh-diff /etc/hosts root@192.168.1.10:/etc/hosts.old
Side-by-Side:
ssh-diff -y /etc/hosts 192.168.1.10
ssh-diff -y /etc/hosts root@192.168.1.10
ssh-diff -y /etc/hosts root@192.168.1.10:/etc/hosts.old
Unified:
ssh-diff -u /etc/hosts 192.168.1.10
ssh-diff -u /etc/hosts root@192.168.1.10
ssh-diff -u /etc/hosts root@192.168.1.10:/etc/hosts.old
February 2022 SSH-TOOLS