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

What is Cybersecurity Risk? Definition & Factors to Consider

  Cybersecurity risk has become a leading priority for organizations as they embrace digital transformation and leverage advanced technology solutions to drive business growth and optimize efficiencies. Additionally, many organizations are increasingly reliant on third-party and   fourth-party vendors   or programs.  In this post, we’ll explore what cybersecurity risk is and take a look at some key cybersecurity risk factors that organizations across all industries should keep in mind as they build and refine their   cybersecurity risk management strategy .   What is cybersecurity risk? Cybersecurity risk refers to   potential threats and vulnerabilities   in digital systems. It encompasses the likelihood of a cyberattack compromising data or systems, leading to financial,   reputational , or operational damage. A few examples of cybersecurity risks include   ransomware ,   malware ,   insider threats ,   phishing attacks ...

How To Manage Dell Servers using OMSA – OpenManage Server Administrator On Linux

OMSA is a web based application to manage DELL PowerEdge Servers. Using OMSA you can perform proactive system monitoring, system diagnosis, troubleshoot hardware issues and configure RAID etc., You can also view and manage hardware’s embedded system management (ESM) log using OMSA. This is an jumpstart guide that explains how to install Dell OMSA on Linux. I have also provided few screenshots of DELL OMSA web application. 1. Download DELL OMSA Go to DELL support website -> click on “Drivers & Downloads” -> choose your server model (in my case, I selected PowerEdge 2850) -> choose the operating system -> scroll-down and expand ‘Systems Management’ -> Click on ‘OpenManage Server Administrator Managed Node’ -> Click on OM_5.5.0_ManNode_A00.tar.gz to download it. You can directly download it to your Linux server as shown below. # mkdir -p /usr/local/omsa # cd /usr/local/omsa # wget http://ftp.us.dell.com/sysman/OM_5.5.0_ManNode_A00.tar.gz 2....

Machine Learning

                                                    Machine Learning Machine Learning, a subset of AI, uses computer algorithms to analyze data and make intelligent decisions based on what it has learned. Instead of following rules-based algorithms, machine learning builds models to classify and make predictions from data. Let's understand this by exploring a problem we may be able to tackle with Machine Learning.  What if we want to determine whether a heart can fail, is this something we can solve with Machine Learning? The answer is, Yes. Let's say we are given data such as beats per minute, body mass index, age, sex, and the result whether the heart has failed or not. With Machine Learning given this dataset, we are able to learn and create a mode...