android ssh: Warning: Reading the random source seems to have blocked.

error:
# ssh user@someserver
_dns_getaddrinfo() name = 'someserver'
res_searchN() name = 'someserver'
ssh: Warning: Reading the random source seems to have blocked.
If you experience problems, you probably need to find a better entropy source.
fuck…

quick reference as taken from wikipedia:
“begin knowledge”: Entropy (computing)

In computing, entropy is the randomness collected by an operating system or application for use in cryptography or other uses that require random data. This randomness is often collected from hardware sources, either pre-existing ones such as mouse movements or specially provided randomness generators. “/end knowledge”

hmm. ok – now its all coming together…

after some playing around i found a fix.

this assumes that you have busybox installed on android and have your path set (dont ask – use the google).

this is a pretty straight walk through

# ./adb remount
# ./adb shell
# cd /dev/
# mv random random_BAK
# ln -s urandom random

now test your ssh again:
# ssh user@someserver
_dns_getaddrinfo() name = 'someserver'
res_searchN() name = 'someserver'
ssh: Warning: failed creating //.ssh: Read-only file system
Host 'someserver' is not in the trusted hosts file.

profit!!

«
»

Leave a Reply

Your email address will not be published. Required fields are marked *