When you connecting to an unknown server you will get a message "The authenticity of host ABC can't be established. ECDSA key fingerprint is SHA256:XYZ. Are you sure you want to continue connecting (yes/no)?" If you type 'yesno' for example it will be treated as 'yes' It looks like the issue in `sshconnect.c: static int confirm(const char *prompt)` function. It checks only 2||3 symbols from user input: strncasecmp(p, "no", 2)||strncasecmp(p, "yes", 3)
Fixed in rev e0ce54c0b and will be in OpenSSH 7.7 - thanks! commit e0ce54c0b9ca3a9388f9c50f4fa6cc25c28a3240 Author: djm@openbsd.org <djm@openbsd.org> Date: Wed Dec 6 05:06:21 2017 +0000 upstream commit don't accept junk after "yes" or "no" responses to hostkey prompts. bz#2803 reported by Maksim Derbasov; ok dtucker@ OpenBSD-Commit-ID: e1b159fb2253be973ce25eb7a7be26e6f967717c
Close all resolved bugs after release of OpenSSH 7.7.
*** Bug 2981 has been marked as a duplicate of this bug. ***