My public key produces "Invalid RSA public key" when saving record

Yes, I actually followed the article and created my own set of public/private keys. But when I supplied my form with SSH2 public key, it throws an error mentioned above.