UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Cannot connect to Ubuntu touch using ssh

    Scheduled Pinned Locked Moved Porting
    5 Posts 2 Posters 384 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • N Offline
        NullTerminator
        last edited by NullTerminator

        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 check-kernel-config script.

        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.82 on 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 -vvvv I get:

        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=yes override 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 CONFIG_NETFILTER set to n

        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

        LakotaubpL 1 Reply Last reply Reply Quote 0
        • LakotaubpL Offline
          Lakotaubp @NullTerminator
          last edited by

          @nullterminator Sorry if I missedit but do you mention which device you are using? It might help.

          N 1 Reply Last reply Reply Quote 0
          • N Offline
            NullTerminator @Lakotaubp
            last edited by

            @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.

            LakotaubpL 1 Reply Last reply Reply Quote 0
            • LakotaubpL Offline
              Lakotaubp @NullTerminator
              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.

              N 1 Reply Last reply Reply Quote 0
              • N Offline
                NullTerminator @Lakotaubp
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • First post
                  Last post