I’m on ubuntu 16.04.7 LTS, enabled for ESM (Extended Security Maintenance).
I upgraded packages yesterday, and since then, ssh.service is not starting anymore. Error is “PRNG is not seeded”.
I do have /dev/random and /dev/urandom and they do generate random numbers.
I also installed haveged for larger entropy. I checked cat /proc/sys/kernel/random/entropy_avail, and I get values over 2000.
In my home directory, .rnd is present, and it has a size of 1024 bytes.
I made the update through the ssh terminal, so it worked before. After that though, the ssh.service did not start anymore and I can access only through the browser recovery console.
Any ideas what else should I do to have ssh again?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hi @ovim,
I’m just going to throw some random fixers for such issues and let me know if you’ve tried them or if not, will you try them.
So first, as you’ve mentioned let’s see the /dev/random and /dev/urandom part.
Check permissions on random numbers generators, the “others” must have “read” access to these devices:
If the permissions are different, you can change them as follows:
Then restart your SSHD service
If you are still getting the same issue, try removing urandom and random and creating them again.