To allow for diffing filesystems via rsync or running diff commands local vs remote. To make this work, easiest to allow root user to ssh into AWS instance.
For each machine you want to issue distributed compare like rsync or run diff remotely to any file:
sudo su
cd ~/.ssh
mv authorized_keys authorized_keys.orig
ssh-keygen -y -f somekey.pem > somekey.pub
cat somekey.pub >> authorized_keys
- Ssh into machine jd2.butterfleye.co
rsync --dry-run -vacO --delete /home/someuser/ [email protected]:/home/someuser/
rsync --dry-run -vacO --delete [email protected]:/home/someuser/ /home/someuser/
diff /home/someuser/somedir/somefile.conf <(ssh [email protected] 'cat /home/someuser/somedir/somefile.conf')
References: http://blog-en.openalfa.com/how-to-compare-recursively-the-content-of-two-directories-with-rsync