SSH2 to OpenSSH public key converter

Do you have an SSH2 public key in .pub format and want to convert it to OpenSSH format compatible with your server’s authorized_keys file? Our free tool transforms SSH2 keys (often generated on Windows or via PuTTY) into the standard OpenSSH format used on Linux and macOS servers, in one click.

Why use this tool?

Many developers get stuck trying to add an SSH key in the wrong format. Paste your SSH2 key, click Convert, and get a public key ready to add to ~/.ssh/authorized_keys.

Main features

  • Instant conversion from SSH2 to OpenSSH
  • 100% online, with no download or registration
  • Compatible with RSA keys generated via PuTTY or other tools
  • Ideal for developers, system administrators and DevOps

How do I convert my SSH2 public key to OpenSSH format?

  1. Copy your SSH2 key (starting with ---- BEGIN SSH2 PUBLIC KEY ----)
  2. Paste it in the field above
  3. Click Convert
  4. Your OpenSSH key appears in the field below
  5. Click Copy to save the result
  6. Paste it into the authorized_keys file on your server

This free tool is here to make life easier for developers and sysadmins.

LOADING