DebKit icon indicating copy to clipboard operation
DebKit copied to clipboard

Cannot access internet from non-root connection

Open thybzi opened this issue 9 years ago • 2 comments

I have Debian Jessie installed via debkit. When chrooting to the image, I can access phone's internet connection.

Then I install ssh within the debkit (which provides sshd server), create new user via adduser, and connect with to user via ssh at 127.0.0.1.

With this connection, I can access debkit filesystem, but any internet-dependent command (such as ping, npm install, git clone or pip install) fails to connect target http server.

How can I fix this?

thybzi avatar Mar 04 '16 20:03 thybzi

did you check the following files in the chroot? /etc/hosts /etc/resolv.conf

cybertim avatar Mar 13 '16 11:03 cybertim

@cybertim What definitely should I check about these files? Both files exist and seem to have default content. I never touched them. Should I? screenshot_2016-03-13-20-39-43

thybzi avatar Mar 13 '16 17:03 thybzi