Skip to content

Instantly share code, notes, and snippets.

@franciscocpg
Last active June 29, 2020 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franciscocpg/1575d286548034113884c3185ca88681 to your computer and use it in GitHub Desktop.
Save franciscocpg/1575d286548034113884c3185ca88681 to your computer and use it in GitHub Desktop.
Entropy for GPG keys (speed up gpg gen key)

Open a ssh session

sudo apt-get install rng-tools

In another SSH window open

gpg --gen--key

Go back to your first SSH session and run

sudo rngd -r /dev/urandom

Let this run till gpg generates your keys!

Then you can kill rngd

sudo kill -9 $(pidof rngd)
@kamil-wozniak
Copy link

kamil-wozniak commented Jun 29, 2020

Hi Francisco,

Hope you are well.

In line 7 you have extra ` character and it's rendering lines not as you intended, I think.

Kind regards,

Kamil

@franciscocpg
Copy link
Author

hi @kamil-wozniak.

I'm fine and you?

Yes, I hadn't noticed it. Thank you for letting me know. Fixed it.

@kamil-wozniak
Copy link

Hi @franciscocpg

Glad you are fine.

You saved me a lot of time in generating a GPG keys, so I thought at least I could do is let you know about it.

Cheers buddy,

Kamil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment