| Author |
Message |
carmp3fan
Joined: 14 Feb 2009
Posts: 113
|
| Posted: Mon Feb 15, 2010 2:02 am Post subject: Fedora fails to generate SSH2 RSA key |
|
|
I am using a StackScript to deply Fedora 11 to my Linode. On random first boots the system will hang on "Generating SSH2 RSA host key". I have deployed the system several times tonight (this has been going on for a while) and it worked fine a few times and hung a few times. If I hit enter it will fail and go on. This occurs before the StackScript runs, so doesn't appear to be anything wrong with my scripting.
Anybody have any ideas about why this is happening and what to do to fix it? |
|
| Back to top |
|
rsk
Joined: 24 Nov 2009
Posts: 283
|
| Posted: Tue Feb 16, 2010 10:30 am Post subject: |
|
|
| Hmm... Depleted /dev/random on the hardware host? |
|
| Back to top |
|
kmweber
Joined: 08 Feb 2010
Posts: 16
|
| Posted: Tue Feb 16, 2010 10:52 am Post subject: |
|
|
| My biggest suggestion is that you should be using Slackware anyway, but then that's my biggest suggestion for everything... |
|
| Back to top |
|
carmp3fan
Joined: 14 Feb 2009
Posts: 113
|
| Posted: Tue Feb 16, 2010 11:57 am Post subject: |
|
|
kmweber wrote: My biggest suggestion is that you should be using Slackware anyway, but then that's my biggest suggestion for everything...
Sorry, but your suggestion isn't much of a suggestion because it doesn't take any factor into consideration. Perhaps the software I am wanting to run doesn't run on Slackware. Or maybe my client only wants to use Fedora. Or maybe I only want to use Fedora. Suggesting I use a different OS simply because I have a problem (which may or may not be OS related) is not useful and not appreciated. |
|
| Back to top |
|
Stever
Joined: 07 Dec 2007
Posts: 329
Location: NC, USA
|
| Posted: Tue Feb 16, 2010 1:06 pm Post subject: |
|
|
rsk wrote: Hmm... Depleted /dev/random on the hardware host?
+1
If they are using /dev/random to generate the host keys (as they should), it can take a long time on a freshly booted VPS to accumulate enough entropy. Are you waiting a long time before you give up and call it hung? |
|
| Back to top |
|
hoopycat
Joined: 30 Aug 2008
Posts: 1137
|
| Posted: Tue Feb 16, 2010 1:42 pm Post subject: |
|
|
| For what it's worth, each kernel (and thus Linode) has its own entropy pool, distinct from the host; /proc/sys/kernel/random/entropy_avail has the number of bytes available. It's usually not a big number. |
|
| Back to top |
|
carmp3fan
Joined: 14 Feb 2009
Posts: 113
|
| Posted: Tue Feb 16, 2010 3:02 pm Post subject: |
|
|
Stever wrote: rsk wrote: Hmm... Depleted /dev/random on the hardware host?
+1
If they are using /dev/random to generate the host keys (as they should), it can take a long time on a freshly booted VPS to accumulate enough entropy. Are you waiting a long time before you give up and call it hung?
At one point I waited several hours. When I finally gave up I went through the process again and it worked fine. |
|
| Back to top |
|
mwalling
Joined: 10 Dec 2007
Posts: 335
|
| Posted: Thu Feb 18, 2010 7:58 am Post subject: |
|
|
kmweber wrote: My biggest suggestion is that you should be using Slackware anyway, but then that's my biggest suggestion for everything...
And this is why Slackware has such a bad name.
.llort |
|
| Back to top |
|
| |