properly deal with non-RSA public keys.  Connection reset can occur otherwise (don't ask me why)