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

    ssh in focal with xiaomi mi a2

    Scheduled Pinned Locked Moved Unsolved Support
    sshfocaljasmine-sprout
    2 Posts 2 Posters 243 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.
      • josevidalJ Offline
        josevidal
        last edited by josevidal

        I can't connect via ssh from a Xiaomi A2 with focal. I have the historical BQE4.5 krillin (with xenial) for years working with ssh but I can't get it with the Xiaomi A2.
        is SSH working on focal?
        where can I look for information to fix it?

        Thanks.

        I have checked:
        https://docs.ubports.com/en/latest/userguide/advanceduse/ssh.html

        https://forums.ubports.com/topic/8383/how-can-i-connect-a-linux-computer-via-ssh-openssh-to-a-ubuntu-touch-phone-when-it-says-ssh-connect-to-host-192-port-22-connection-refused/6

        https://forums.ubports.com/topic/8631/howto-autostart-ssh

        Device: Xiaomi Mi A2 (jasmine-sprout)
        Channel:devel
        Release:457

        error output:

        ● ssh.service - OpenBSD Secure Shell server
             Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: disabled)
            Drop-In: /usr/lib/systemd/system/ssh.service.d
                     └─lxc-android-config.conf, usb-moded-ssh.conf
             Active: failed (Result: exit-code) since Sun 2023-08-13 11:31:20 CEST; 3min 43s ago
               Docs: man:sshd(8)
                     man:sshd_config(5)
            Process: 1864 ExecStartPre=/usr/bin/ssh-generate-hostkeys (code=exited, status=0/SUCCESS)
            Process: 1872 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255/EXCEPTION)
        
        ago 13 11:31:20 u-phablet-a2 sshd[1872]: /etc/ssh/sshd_config line 16: Deprecated option UsePrivilegeSeparation
        ago 13 11:31:20 u-phablet-a2 sshd[1872]: /etc/ssh/sshd_config line 19: Deprecated option KeyRegenerationInterval
        ago 13 11:31:20 u-phablet-a2 sshd[1872]: /etc/ssh/sshd_config line 20: Deprecated option ServerKeyBits
        ago 13 11:31:20 u-phablet-a2 sshd[1872]: /etc/ssh/sshd_config line 38: Deprecated option RhostsRSAAuthentication
        ago 13 11:31:20 u-phablet-a2 sshd[1872]: /etc/ssh/sshd_config line 91: unsupported option "yes".
        ago 13 11:31:20 u-phablet-a2 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
        ago 13 11:31:20 u-phablet-a2 systemd[1]: Stopped OpenBSD Secure Shell server.
        ago 13 11:31:20 u-phablet-a2 systemd[1]: ssh.service: Start request repeated too quickly.
        ago 13 11:31:20 u-phablet-a2 systemd[1]: ssh.service: Failed with result 'exit-code'.
        ago 13 11:31:20 u-phablet-a2 systemd[1]: Failed to start OpenBSD Secure Shell server.
        

        2015 - nearly 2024: BQ Aquaris E4.5 Ubuntu Edition
        2023 - Now (Daily use): Xiaomi MI A2

        Br1B 1 Reply Last reply Reply Quote 0
        • Br1B Offline
          Br1 @josevidal
          last edited by

          @josevidal

          Xiaomi Mi A2 - Focal OTA 2 - Stable Channel

          SSH works fine, I don't know if it helps ... try disabling usb-moded-ssh service, on my device is disabled.

          ^

          • Google Pixel 3a XL
          • Xiaomi MI A2
          1 Reply Last reply Reply Quote 1
          • First post
            Last post