Cannot connect to Ubuntu touch using ssh
Hello, I've been following the ubports porting guide for my device.
I have adapted a device tree from android10 group and modified my device's kernel configuration for halium using halium's own
So far I'm getting successful builds on both system and boot image. When I try to boot I get the
GNU/Linux Device on usb0 10.15.19.82on my usb which should indicate a working image.
However, when I follow the debugging ssh procedure I get:
ssh: connect to host 10.15.19.82 port 22: Connection refused
Upon running ssh with
OpenSSH_8.6p1, OpenSSL 1.1.1k 25 Mar 2021 debug1: Reading configuration data /etc/ssh/ssh_config debug2: resolve_canonicalize: hostname 10.15.19.82 is address debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/NTer/.ssh/known_hosts' debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/NTer/.ssh/known_hosts2' debug3: ssh_connect_direct: entering debug1: Connecting to 10.15.19.82 [10.15.19.82] port 22. debug3: set_sock_tos: set socket 3 IP_TOS 0x48 debug1: connect to address 10.15.19.82 port 22: Connection refused ssh: connect to host 10.15.19.82 port 22: Connection refused
Then I've ran nmap to scan all known ports on the device, which gave me connection refused on every single scanned port.
This led me to believe that my connection was being firewalled, To be sure I checked my system image and build overlays, they both contain the usual
PasswordAuthentication=yesoverride init scripts.
Here are the things I have tried:
- Manually create UFW rules for init to allow ssh while chrooted
- Disable UFW, create iptables entries to allow ssh or disable iptables completely while chrooted
- Recompile kernel with
When all my attempts has failed I tried to get a serial connection (rx only) so I could figure out what's wrong, I've seen my phones early boot procedures but not the kernel log.
How do I approach this? I'm running Artix Linux with latest kernel if that helps.
PS: I just get the splash screen upon boot
Lakotaubp last edited by
@nullterminator Sorry if I missedit but do you mention which device you are using? It might help.
@lakotaubp It's a Redmi Note 8 (ginkgo), although it already has a device tree in android9 group, the system and boot image produced from it does not boot the device either (and it does not give a debuggable usb or a telnet communication interface).
The device is officially supported by LineageOS with 17.1 kernel.
I have also tried flashing other partition images produced in out directory (vendor, vbmeta) but it just bricks the device instead.
Lakotaubp last edited by
@nullterminator I have no porting skills at all for what you are doing except for you do need the device to be on android 9 after that nothing. You need someone who knows what is happening.
This post is deleted!