How ssh-keygen generate the key ?

Posted on 2009-02-13
Last Modified: 2012-05-06
How the ssh-keygen generate the public/private key ?
is it dependent upon IP address, MAC address, hostname or something like this ?

Please explain.
Question by:beer9
    LVL 84

    Assisted Solution

    some systems have /dev/random as an entropy source
    LVL 48

    Accepted Solution

    ssh-keygen depends on "randomness" to generate a unique private key.  The randomness is generated in various ways depending on the system.

    Author Closing Comment

    Thank you! :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
    Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
    Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
    This tutorial goes over how to archive and restore FreeBSD jails that are managed by ezjail.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now