linux – GPG没有足够的熵

前端之家收集整理的这篇文章主要介绍了linux – GPG没有足够的熵前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有很多进程在后台运行以尝试获得足够的熵,但我仍然失败.
**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)**

我需要一种方法生成有效的密钥,因为我正在尝试做的事情显然是失败的.

解决方法

你看过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

猜你在找的Linux相关文章