I couldn't find a way to prevent ssh from talking with the terminal for password prompts. One trick is to disable password authentication. This won't help with missing host key prompting but it eliminates passwords prompts and fails when it can't authenticate.