Improve SSH public key validation
The current function for validating the key is a bit naive and basically only checks the prefix.
I had a look at how GitLab does it. They use the .valid_ssh_public_key?(ssh_public_key)
method from the SSHKey Ruby gem. AFAIU the method checks that the ssh_type
is valid and that the key can be decoded and has the correct length.