termux / proot

An chroot-like implementation using ptrace.
https://wiki.termux.com/wiki/PRoot
Other
756 stars 159 forks source link

PRNG is not seeded #129

Open shadowfox87 opened 3 years ago

shadowfox87 commented 3 years ago

After the most recent update for proot, ssh has stopped working. If I run ssh , it will say "PRNG is not seeded". If I run outside of linux, ssh works just fine. I've tried this on Ubuntu 20.04 and also the latest version of archlinux.

See the below screenshot. https://cdn.discordapp.com/attachments/411604294723305483/772183392568737812/unknown.png

HKunogi commented 3 years ago

Happens to me on ubuntu and on archlinux. On Kali Nethunter just after installing it works fine, but after update && upgrade, the same problem appears there.

Downgrading the LibSSL to 1.1.1c makes it work again.

michalbednarski commented 3 years ago

Doesn't happen on my test devices, could you share what you've used to install distro, Android version and results of following commands

uname -a
apt list proot
HKunogi commented 3 years ago

I've tested into an ARMv81 and on an i686 device, and the issue seems to be that the entropy is too low, would be good if we could have an fake entropy generator just for having stuff like openssl that requires certain entropy level to work (as an option, even if its not secure). Downgrading to old openssl version seems to solve as it probably works with lower entropy. The issue will mostly happens on devices without many stuff connected to them (like static servers and such), if you run this in your phone it will most surely not happen cause theres tons of things generating the entropy, but for android devices that are statical and can have no devices attached to it other than the network and power, it will most surely happen using the latest openssl lib.

shadowfox87 commented 3 years ago

Yes, I can confirm that downgrading the openssl version fixed the issue. You should test it on a pc not mobile.