Skip to content

Instantly share code, notes, and snippets.

@wmudge
Created January 20, 2023 19:29
Show Gist options
  • Save wmudge/65b5089d3eb92227acb17a43053dbe71 to your computer and use it in GitHub Desktop.
Save wmudge/65b5089d3eb92227acb17a43053dbe71 to your computer and use it in GitHub Desktop.
SSH operations

Legacy RSA PEM Key Operations

Several projects and applications cannot handle newer SSH key formats, so to use the legacy PEM format for RSA keys, follow the steps below:

Generate the RSA PEM private key

ssh-keygen -b 3072 -C <optional comment> -t rsa -m PEM -f <private key name>.pem [-P <password>]

Generate the SSH public key

ssh-keygen -y -t rsa -f test [-P <password>] 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment