Fix ssh-key check for unreliable database