I'm writing a script that uses rsync, and I want it to error out if the SSH key has a password, telling the user to use a non-password protected key instead (as the script runs in the background).
However, none of the flags I've tried for SSH do this, and I've found nothing in the man pages.
What's the best way to disable the passphrase prompt for SSH?