Setup SSH to Android device

keyboardpackage-managementssh

Sorry for cross-posting (https://android.stackexchange.com/questions/239535/endless-updates-on-every-boot ) but trying to ask wider to get an answer.

How do I go about setting up a SSH connection to a remote device (a treadmill running Android 4.4.4 Ubuntu kernel 3.0.36+)? The remote device is connected via WiFi to the internet and I can run packages through the file manager (saved on USB thumb drive). The system seems very limited, both Google play and Opera don't work properly.

Manufacturer gone out of business so no support from that side. No other inputs (ethernet, RS232 etc.) At this stage USB is the only possible entry point. Guessing I need to load SSH client package, possibly bluetooth keyboard may be another entry point. Any suggestions, please.

Best Answer

I don't really know what you're trying to accomplish, but Termux is great as a client as well as ssh server. After the install you just need to install the openssh package with apt/pkg install openssh. (They use a wrapper so it doesn't matter if you use apt or pkg)

They even have a wiki about it https://wiki.termux.com/wiki/Remote_Access

A nice addition (if you want to use it as a ssh-server) is tmate. With that you don't need any kind of port-porwarding ;)

EDIT: Be sure to download Termux from F-Droid tho, as the GooglePlay version is severly outdated

Related Question