SSH keys used for remote login are supplied as base64 encoded data on the CLI. The key is not validated, thus an invalid copy/pasted key will render the login useless.
Add a custom and reusable validator which check if the data is properly base64 encoded.