Skip to main content

GPG keygen: Not enough random bytes available

     How to resolve the error (shown below) while generating RSA key using GPG on RHEL 

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

Open 3 different SSH Session to the server; 

Session 1 - >  type watch cat /proc/sys/kernel/random/entropy_avail 
[You can watch the entopy pool by observing the appropriate spot in the /proc system with this command. Make sure that you see the count increasing to more than 3000] 

Session 2 - > Run the command " ls -R / " from the second session 

Session 3 -> Run the Key Generation Command " gpg --gen-key
[Make sure that you start running the command " ls -R / " in parallel just after typing the Passphrase section.]

Once the test keys are generated please have the test keys remove from the Production Servers: 

How to list the available Keys on the Server
  • gpg --list-keys 
---------------------------See the results below------ ------------------------------------------
pub 2048R/D484AB62 2011-12-20 
uid AVINASH PILLAI (RSA test) <avinashp25@gmail.com>
----------------------------------------------------------------------------------- --------------
How to deleted the generated Keys from the server
  • gpg --delete-secret-keys 
[ In this case the Key ID is D484AB62 ]
  • gpg --delete-keys 


Thanks & Regards
Avinash Pillai 
Email: avinashp25[AT]gmail[DOT]com

Comments

Popular posts from this blog

Defining AI Ethics

                           Defining AI Ethics Welcome to Defining AI Ethics. Humans rely on culturally agreed-upon morals and standards of action — or ethics — to guide their decision-making, especially for decisions that impact others. As AI is increasingly used to automate and augment decision-making, it is critical that AI is built with ethics at the core so its outcomes align with human ethics and expectations. AI ethics is a multidisciplinary field that investigates how to maximize AI's beneficial impacts while reducing risks and adverse impacts. It explores issues like data responsibility and privacy, inclusion, moral agency, value alignment, accountability, and technology misuse …to understand how to build and use AI in ways that align with human ethics and expectations.  There are five pillars for AI ethics: explainability, fairness,...

Seven Personal Qualities Found In A Good Leader

Whether in fact a person is born a leader or develops skills and abilities to become a leader is open for debate. There are some clear characteristics that are found in good leaders. These qualities can be developed or may be naturally part of their personality. Let us explore them further. Seven Personal Qualities Found In A Good Leader: 1. A good leader has an exemplary character. It is of utmost importance that a leader is trustworthy to lead others. A leader needs to be trusted and be known to live their life with honestly and integrity. A good leader “walks the talk” and in doing so earns the right to have responsibility for others. True authority is born from respect for the good character and trustworthiness of the person who leads.   2.A good leader is enthusiastic about their work or cause and also about their role as leader. People will respond more openly to a person of passion and dedication. Leaders need to be able to be a source of inspiration, and b...

The evolution and future of AI

                  The evolution and future of AI The original AI researchers were very interested in games because they were extremely complex. Huge numbers of possible positions and gains were available, yet they're simple in a certain way. They're simple in that the moves are well-defined, the goals are well-defined. So you don't have to solve everything all at once. With chess in particular, in the work on Deep Blue at IBM, what became apparent, what computers could do on our problem like that was bringing a massive amount of compute resource to do deeper searches, to investigate more options of moves in chess than was previously possible. Watson defeating jeopardy. So this was another crossover point, in the development of AI and cognitive computing. That the questions that IBM was able to answer with jeopardy were questions that weren't simply looking up in the database,...