Warm tip: This article is reproduced from serverfault.com, please click

linux-GPG没有足够的熵

(GPG does not have enough entropy)

发布于 2021-03-19 08:35:12

我在后台运行了大量的进程来尝试获取足够的熵,但是我仍然失败了。

**We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
Not enough random bytes available.  Please do some other work to give
the OS a chance to collect more entropy! (Need 210 more bytes)**

我需要一种方法来生成有效的密钥,因为我要尝试执行的操作显然失败了。

Questioner
Joey BagODonuts
Viewed
22
Danny Staple 2014-05-21 22:48:04

你看过RNG吗?

Fedora / Rh / Centos类型: sudo yum install rng-tools

关于deb类型:sudo apt-get install rng-tools进行设置。

然后运行,sudo rngd -r /dev/urandom然后生成密钥。

参考:http//it.toolbox.com/blogs/lim/how-to-generate-enough-entropy-for-gpg-key-generation-process-on-fedora-linux-38022