check_ssh: Get rid of sshd: Read from socket failed: Connection reset by peer

This fix was grabbed from FreeBSD downstream and provided by Dmitry Sivachenko.
Fixes Debian Bug #734811