Skip to content

Instantly share code, notes, and snippets.

@sonufrienko
Last active March 23, 2019 12:06
Show Gist options
  • Save sonufrienko/ae52873a75425116e799c847d2216786 to your computer and use it in GitHub Desktop.
Save sonufrienko/ae52873a75425116e799c847d2216786 to your computer and use it in GitHub Desktop.
# Generate private and public keys
# RSA 2048
# Quiet mode
# Without a passphrase
ssh-keygen -t rsa -b 2048 -q -N '' -m PEM -f private.key \
&& rm private.key.pub \
&& openssl rsa -in private.key -pubout -outform PEM -out public.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment