Skip to content

Instantly share code, notes, and snippets.

@DoZator
Created October 24, 2024 11:34
Show Gist options
  • Save DoZator/bb6d7cc3e87d5052c55410d716a97ebb to your computer and use it in GitHub Desktop.
Save DoZator/bb6d7cc3e87d5052c55410d716a97ebb to your computer and use it in GitHub Desktop.
Get public key of a pem file

Copy the public key to clipboard

Linux

ssh-keygen -f private.pem -y | xclip

macOS

ssh-keygen -f private.pem -y | pbcopy

Save to file

ssh-keygen -f private.pem -y > public.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment