{"meta":{"title":"Error: Unknown key type","intro":"This error means that the SSH key type you used was unrecognized or is unsupported by your SSH client.","product":"Authentication","breadcrumbs":[{"href":"/en/authentication","title":"Authentication"},{"href":"/en/authentication/troubleshooting-ssh","title":"Troubleshooting SSH"},{"href":"/en/authentication/troubleshooting-ssh/error-unknown-key-type","title":"Error: Unknown key type"}],"documentType":"article"},"body":"# Error: Unknown key type\n\nThis error means that the SSH key type you used was unrecognized or is unsupported by your SSH client.\n\n## About the `unknown key type` error\n\nWhen you generate a new SSH key, you may receive an `unknown key type` error if your SSH client does not support the key type that you specify.<div class=\"ghd-tool mac\">To solve this issue on macOS, you can update your SSH client or install a new SSH client.\n\n## Prerequisites\n\nYou must have Homebrew installed. For more information, see the [installation guide](https://docs.brew.sh/Installation) in the Homebrew documentation.\n\n## Solving the issue\n\n> \\[!WARNING]\n> If you install OpenSSH, your computer will not be able to retrieve passphrases that are stored in the Apple keychain. You will need to enter your passphrase or interact with your hardware security key every time you authenticate with SSH to GitHub or another web service.\n>\n> If you remove OpenSSH, the passphrases that are stored in your keychain will once again be retrievable. You can remove OpenSSH by entering the command `brew uninstall openssh` in Terminal.\n\n1. Open Terminal.\n2. Enter the command `brew install openssh`.\n3. Quit and relaunch Terminal.\n4. Try the procedure for generating a new SSH key again. For more information, see [Generating a new SSH key and adding it to the ssh-agent](/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key-for-a-hardware-security-key).\n\n</div>\n<div class=\"ghd-tool linux\">To solve this issue on Linux, use the package manager for your Linux distribution to install a new version of OpenSSH, or compile a new version from source. If you install a different version of OpenSSH, the ability of other applications to authenticate via SSH may be affected. For more information, review the documentation for your distribution.</div>"}