Diff 2 Folders Over SSH
May 19, 2023 —
Gregg Szumowski
If you need to do a 'diff' on 2 folders and one of them is remote then you can accomplish that as follows:
$ diff <(ssh username@192.168.1.60 ls -R /home/username/dir1) <(ls -R /home/username/dir2)