Is it possible to login with SSH on the Ubuntu touch mobile
-
My Google Pixel 3a is installed with Ubuntu touch and works OK.
It is possible to connect with SSH from an Ubuntu Linux system to the Ubuntu touch mobile? -
Hi @linuxlion
Glad you figured it out.
The SSH login with password is not recommended because it is less secure.
If you protected your device with a PIN code it can be brute forced quite easily with SSH.The key pair is more convenient and secure.
But I can see a couple of (still insecure) scenarios where you would do it the way you chose.
Be it at your own risks. -
You can install UT Tweak Tool from the Openstore and activate SSH within the app. After connecting your phone and the Ubuntu-PC to the same network you enter the phone via SSH from your PC.
-
@kristatos
With "systemctl start ssh" the ssh.service is running.
"netstat -atn | grep LISTEN" give
tcp 0 0 0.0.0.0:22 0.0.0.0:*"ifconfig wlan0" give
wlan0: flags=4163<UP, BROADCAST,RUNNING,MULTICAST> MTU 1500
inet 192.168.50.92 netmask 255.255.255.0 broadcast 192.168.50.225On an other system in the same network, the command
"ssh sysadmin@192.168.50.92" give
sysadmin@192.168.50.92: Permission denied (publickey).So I have contact with the sshd on my Ubuntu touch mobile.
Now I had to solve the publickey problem.
-
Works for me with password only (no keys) with
"Password Authentication yes"
set in
/etc/ssh/sshd_config.
-
Hi @linuxlion
Here is the official documentation.
https://docs.ubports.com/en/latest/userguide/advanceduse/ssh.htmlFew easy steps well described. You shouldn't have any problem.
-
"Password Authentication yes" with a space between Password en Authentication cause that the sshd doesn't start.
With "PasswordAuthentication yes" without the space the sshd runs.But in Putty I still get "Disconnected: No supported authentication methods
available (server sent )I will try to place a public key on my Ubuntu touch device.
-
My problem is solved, I can login with ssh and password.
The directory /etc/ssh/sshd_config.d contains a file
with the name 50-lxc-android-config.conf
This file contains the line "PasswordAuthentication=no"
I changed the "no" to "yes" and restarted the sshd with
"systemctl restart ssh".Strange that the account "phablet" can be used but doesn't exist in
/etc/passwd. -
Hi @linuxlion
Glad you figured it out.
The SSH login with password is not recommended because it is less secure.
If you protected your device with a PIN code it can be brute forced quite easily with SSH.The key pair is more convenient and secure.
But I can see a couple of (still insecure) scenarios where you would do it the way you chose.
Be it at your own risks. -
Now, I can also login with key and without password.
-
L linuxlion has marked this topic as solved on
-
K Keneda referenced this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login