1

Gitlab lists their ssh-keygen commands with the -o flag:
https://docs.gitlab.com/ee/ssh/

But I cannot find -o in any help page or man page.

What does it do?

2

Quoting OpenSSH 7.7 man page of ssh-keygen:

-o Causes ssh-keygen to save private keys using the new OpenSSH format rather than the more compatible PEM format. The new format has increased resistance to brute-force password cracking but is not supported by versions of OpenSSH prior to 6.5. Ed25519 keys always use the new private key format.


The option existed in OpenSSH 6.5–7.7. Since OpenSSH 7.8, the -o is the default behavior and the option is no longer documented (just silently ignored, when used).

In those older versions, ssh-keygen would by default use PEM format for RSA, DSA and ECDSA keys (but not Ed25519).

In OpenSSH 7.8 and newer, you can get the key in the PEM format by using -m PEM flag.

  • 7.8 was released 2018-08 almost a year ago, but distros, platforms, packages, and such vary in how quickly they adopt new releases. – dave_thompson_085 Jul 24 at 9:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.