Neo-Oli / termux-ubuntu

Ubuntu chroot on termux
873 stars 309 forks source link

Ssh into ubuntu termux? #67

Open misaalanshori opened 6 years ago

misaalanshori commented 6 years ago

i want to be able to ssh to ubuntu on termux from my laptop when im home, but i couldnt get it working. Can someone tell me how to get an ssh server working properly?

diehard88 commented 6 years ago

the instructions are here:

Access Termux via USB

but it's not clear to me. I will try again.

this is for reference:

https://glow.li/technology/2015/11/06/run-an-ssh-server-on-your-android-with-termux/

misaalanshori commented 6 years ago

I think thats to SSH to normal termux via USB and not termux Ubuntu via a local network using a local ip address

diehard88 commented 6 years ago

this is what I do:

1) access smartphone using adb and standard usb, as customary; 2) if adb established, then run this command on desktop:

adb tcpip 5566

3) unplug usb cable; 4) make sure adb is ready for adb over tcpip:

nmap localhost

5) port 5566 must be listed; 6) finally, from any host in the same wifi network, type the following command to adb jnto the android via tcp:

adb connect 192.168.10.50:6655