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

    ssh connection fails

    Scheduled Pinned Locked Moved Solved Support
    3 Posts 2 Posters 751 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.
      • R Online
        RJDan
        last edited by

        Re: ssh to pixel 3a - recv - from CB(2) ERROR:108

        I have successfully connected to my phone (FP5) via adb. I followed the ubports guide to setting up ssh and everything looks in place. When I try to connect I get the error below:

        kex_exchange_identification: read: Connection reset by peer
        Connection reset by 192.168.10.109 port 22
        

        Have I missed something?

        1 Reply Last reply Reply Quote 0
        • H Offline
          haagch
          last edited by

          That reminds me that I wanted to make a MR for this: https://gitlab.com/ubports/docs/docs.ubports.com/-/merge_requests/659

          i.e.:

          If connecting fails with the message ::

          kex_exchange_identification: read: Connection reset by peer
          

          check the log on the UBports device ::

          journalctl | grep sshd
          

          If you see a message about missing hostkeys such as ::

          sshd: no hostkeys available -- exiting.
          

          You need to generate host keys with the following command ::

          sudo ssh-keygen -A
          
          R 1 Reply Last reply Reply Quote 1
          • R Online
            RJDan @haagch
            last edited by

            @haagch
            I found a toggle in the UT tweak tools click to allow ssh access.
            That seems to have done the trick.

            1 Reply Last reply Reply Quote 0
            • R RJDan has marked this topic as solved 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
            • First post
              Last post