A script regularly initiates an SSH connection from one server to another, using SSH keys.
However, once, the keys were briefly overwritten. This caused the SSH client to fall back to asking for a password, which had undesired knock-on effects.
Is it possible to instruct SSH to exit if key-based auth fails, and not fall back to asking for a password?
Thanks!
Wodow