Compiled from source openssh-5.9p1. When generating new key pair with ssh-keygen it will ask something like > <filename> already exists. > Overwrite (y/n)? regardless of terminal existance. Worse, there is no option to disable such behaviour. To force file rewrite I use 'echo y' piped to ssh-keygen, but it still outputs the question. I expected '-q' option (Silence ssh-keygen) will be able to skip such interactions.
Added pr to change this behavior for openssh-portable here: https://github.com/openssh/openssh-portable/pull/175