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 lets you transform your SSH2 keys (often generated under Windows or via PuTTY) into the standard OpenSSH format used on Linux and macOS servers, with just one click. Enjoy!










Why use this tool?

Simplify your SSH connections with the right format

Many developers get stuck trying to add an SSH key in the wrong format. This converter saves you the trouble of format errors and technical manipulations: simply paste in your SSH2 key, click on “Convert”, and retrieve your public key ready to be added to ~/.ssh/authorized_keys.

Main features

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

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

  • Copy your SSH2 key (starting with ---- BEGIN SSH2 PUBLIC KEY ----)
  • Paste it in the space provided above
  • Click on Convert
  • Your key in OpenSSH format should appear in the text box below.
  • Click on Copy to save the result in OpenSSH format.
  • Paste it into your authorized_keys file on your server

We’ve put together this free tool to make life easier for developers and sysadmins.

Don’t hesitate to add it to your favorites if you regularly use SSH keys.