All pastes #185491 Raw Edit

Anonymous

public text v1 · immutable
#185491 ·published 2006-09-29 00:17 UTC
rendered paste body
/dev/random blocks rather then giving random data as it is supposed to... this effects dropbear and other packages that need to generate keys... dropbear install hangs with the following message:

 
Will output 1024 bit rsa secret key to '/opt/etc/dropbear/dropbear_rsa_host_key'
Generating key, this may take a while...
Warning: Reading the random source seems to have blocked.
If you experience problems, you probably need to find a better entropy source.


hack to fix:

 
mv /dev/random /dev/random-blocks
ln -s /dev/urandom /dev/random
# To read about the difference between urandom and random go here:
# http://people.freebsd.org/~dougb/randomness.html


then reinstall dropbear or restart whatever process blocked trying to get data from random. In order to be able to ssh in after a reboot, you may want to apply the hack in the /opt/etc/init.d/S51dropbear before starting dropbear.