Set up ssh on Ubuntu Touch:


It is possible to use ssh to connect to terminal on Ubuntu Touch, rather then adb. It is disabled by default but can be enabled.
You will need to have a password and developer tools enabled before any of this is posable and keep it enabled.

1. In terminal type "sudo android-gadget-service enable ssh" to enable ssh.
2. You cant just use a password login to connect through ssh on Ubuntu Touch, you require a key, to set up key:
a. type "ssh-keygen" to create a private + public key. (If you already have both set up, you can re use them for this device.
b. Copy the id_rsa.pub from ~/.ssh on your PC to the ubuntu touch phone under /home/phablet/.ssh/ and rename the file as "authorized_keys" before copy.
3. You can now connect to ssh.


Source | Date: November 15th 2021

Back