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

Adding a New Hard Drive to Linux using LVM

I did this on RHEL 5.5. You should have the new drive created and added to the machine before you start anything.First you need to fdisk the drive like any other drive in linux. One key step is that you need to change the type; option ?t? to ?8e? for lvm. root@itsme ~# fdisk /dev/sdc Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only,until you decide to write them. After that, of course, the previous content won't be recoverable. The number of cylinders for this disk is set to 7832. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Command action e ex

Various Types of Hunt Groups

                                                         Various Types of Hunt Groups         * Sequential Hunt Groups    * Peer Hunt Groups   * Longest-Idle Hunt Groups   * Parallel Hunt Groups (Call Blast) Sequential Hunt Groups In a sequential hunt group, extensions always ring in the order in which they are listed, left to right, when the hunt group is defined. The first number in the list is always the first number to be tried when the pilot number is called. Maximum number of hops is not a configurable parameter for sequential hunt groups. Peer Hunt Groups In a peer hunt group, extensions ring in a round-robin order. The first extension to ring is the number in the list to the right of the last extension to ring when the pilot number was last called. Ringing proceeds in a circular manner, left to right, for the number of hops specified when the hunt group was defined. Below figure llustrates a peer hunt group. Longest-Idle Hunt Groups

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 be a