Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I set up my Pi, and I get output to a screen / keyboard working etc.

However, when I run raspi-config, and pick the SSH option I get

Initial ssh key generation still running. Please wait and try again.

I left the Pi on for a few hours but this didn't help.

I tried bashing on the keyboard for a while as I assume this is due to insufficient entropy.

Is there a way to fix this??

share|improve this question
Can you just generate the keys manually? –  Jivings Jul 27 '12 at 8:37

1 Answer 1

up vote 5 down vote accepted

The advice in the Raspberry Pi forum thread (rm /var/log/regen_ssh_keys.log) got the raspi-config to make it look like it had worked, but the host keys weren't generated. I fixed this by doing

sudo rm /etc/ssh/ssh_host*
sudo ssh-keygen -A

the rm was needed as otherwise ssh-keygen was seeing the 0 length files as valid keys

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.