SSH & Keys
SSH Key Validator
Validate an SSH Key
Key to validatepublic or private, any format
Keys are processed securely and deleted immediately after checking.
Learn more
Guides & explainers related to this tool
Tool features
Format validation
Strength analysis
Pair matching
Actionable recommendations
What SSH key validation checks & how it works
Validating an SSH key answers two different questions. The first is structural: does this file actually parse as a key, and is it the format the tool you are feeding it expects? A key that has been mangled by a copy-paste, saved with Windows line endings, or wrapped by an editor will fail in ways whose error messages rarely say so.
The second question is whether a public and private key belong together. Because the public key is mathematically derived from the private one, you can check a pair without ever using it to log in — derive the public half and compare fingerprints. Use Validate key for the first question and Match key pair for the second.
-----BEGIN OPENSSH PRIVATE KEY-----. What ssh-keygen writes today.-----BEGIN RSA PRIVATE KEY-----. Still required by some libraries and cloud consoles.How to use this tool
Related tools
Frequently asked questions
-----BEGIN----- / -----END----- markers. Re-copy the file with cat rather than opening it in a rich-text editor.ssh-keygen -y -f ~/.ssh/id_ed25519 and compare the output with your .pub file yourself.-----BEGIN OPENSSH PRIVATE KEY----- use the modern format that ssh-keygen writes by default; -----BEGIN RSA PRIVATE KEY----- is the older PEM form that some libraries and cloud consoles still require. Convert with ssh-keygen -p -m PEM -f keyfile.authorized_keys file and Git host it reached.