Generate Entropy for GnuPG

GnuPG Logo

Has anyone every tried to generate a GPG (or GnuPG) key? I have… and I received this error…

Not enough random bytes available.  Please do some other work to give
the OS a chance to collect more entropy! (Need 284 more bytes)

I was remotely logged into the machine (over SSH) so couldn't physically move the mouse or press keys to generate random entropy. The solution turned out to be simply running the following command in a second SSH Shell.

ls -R /

As soon as I ran that, the gpg command in the other window instantly finished creating my 2048 bit key.

Comment Icon

5 Comments

The most recent comment was on Thu, 2nd Feb 2012 - 20:44

You made my day! Thanks kindly for the great tip

Thanks for the tip! I got my key finished almost instantly too!

Fantastic :)
Simple and effective. Thanks!

Doesn't work -.-
Before(Need 284 more bytes)
After (Need 280 more bytes)

Add new comment

Filtered HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <img> <p>
  • You can use BBCode tags in the text. URLs will automatically be converted to links.
  • You can enable syntax highlighting of source code with the following tags: <code>, <pre>, <bash>, <css>, <html>, <js>, <jquery>, <mysql>, <php>. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.