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

    SSH to Pixel3a Focal

    Scheduled Pinned Locked Moved Solved Support
    8 Posts 4 Posters 896 Views 2 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.
    • J Offline
      JSBuch
      last edited by

      Dear all,
      I tried to connect to my Pixel3a via SSH

      I set up the mobile according to the the proposal in
      https://docs.ubports.com/en/latest/userguide/advanceduse/ssh.html#configure-your-device

      and I also tried
      https://forums.ubports.com/post/75754

      The SSH seems running on the mobile since
      systemctl status ssh.service
      says, that ssh is active.

      However the results follwong both proposals is the same when connecting from the PC to the mobile, since the result is always "Permission denied."

      Any suggetion, where I could look into?

      Mobile: PIXEL 3a Focal
      PC: Open Suse Tumbleweed.

      Thanks a lot for every hint.
      Best regards

      Jörg

      lduboeufL arubislanderA 2 Replies Last reply Reply Quote 0
      • lduboeufL Offline
        lduboeuf @JSBuch
        last edited by

        @JSBuch
        Really not sure if needed but did you enable deveopper mode ?
        Otherwise should be good
        . Just did the setup on my P3a 2 days ago, and working for me

        1 Reply Last reply Reply Quote 0
        • arubislanderA Offline
          arubislander @JSBuch
          last edited by arubislander

          @JSBuch can you post the output of

          ls -l $HOME/.ssh/authorized_keys
          

          ?

          🇦🇼 🇳🇱 🇺🇸 🇪🇸
          Happily running Ubuntu Touch
          JingPad (24.04-1.x daily)
          OnePlus Nord N10 5G (24.04-2.x daily)
          PinePhone OG (20.04)
          Meizu Pro 5 (16.04 DEV)

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            JSBuch @arubislander
            last edited by JSBuch

            Dear all.
            thanks a lot for the supporl.
            It was actually some wrong permissions for the folder .ssh/ and the file authorized_keys in combination with the lack of restarting the ssh-server. Sorry for that.

            Now it works. The solution is as shown in https://docs.ubports.com/en/latest/userguide/advanceduse/ssh.html

            chmod 700 /home/phablet/.ssh
            chmod 600 /home/phablet/.ssh/authorized_keys
            chown -R phablet:phablet /home/phablet/.ssh

            and after this modification, stop and restart of the ssh-server
            sudo servcie ssh stop
            sudo servcie ssh start
            systemctl status ssh

            Thanks a lot
            Jörg

            KenedaK 1 Reply Last reply Reply Quote 1
            • J JSBuch has marked this topic as solved on
            • KenedaK Offline
              Keneda @JSBuch
              last edited by

              @JSBuch said in SSH to Pixel3a Focal:

              sudo servcie ssh stop
              sudo servcie ssh start

              service ?

              2015-2023 : Meizu MX4 ☠️⚰️✝️
              2023-2024 : Nexus 5 ☠️⚰️✝️
              2024-***** : FPOS Fairphone 5
              🇲🇫🇬🇧

              lduboeufL 1 Reply Last reply Reply Quote 0
              • lduboeufL Offline
                lduboeuf @Keneda
                last edited by

                @Keneda said in SSH to Pixel3a Focal:

                @JSBuch said in SSH to Pixel3a Focal:

                sudo servcie ssh stop
                sudo servcie ssh start

                service ?

                Yes this is how we do in 20.04

                KenedaK 1 Reply Last reply Reply Quote 0
                • KenedaK Offline
                  Keneda @lduboeuf
                  last edited by Keneda

                  @lduboeuf
                  Here there's a typo, that's what I guess.

                  2015-2023 : Meizu MX4 ☠️⚰️✝️
                  2023-2024 : Nexus 5 ☠️⚰️✝️
                  2024-***** : FPOS Fairphone 5
                  🇲🇫🇬🇧

                  J 1 Reply Last reply Reply Quote 0
                  • J Offline
                    JSBuch @Keneda
                    last edited by

                    @Keneda
                    Yes you are right, pleae apologizy the misprint, it should be service ...

                    Summarizing the procedure is as shown in https://docs.ubports.com/en/latest/userguide/advanceduse/ssh.html:

                    chmod 700 /home/phablet/.ssh
                    chmod 600 /home/phablet/.ssh/authorized_keys
                    chown -R phablet:phablet /home/phablet/.ssh

                    and after this modification, stop and restart of the ssh-server

                    sudo service ssh stop
                    sudo service ssh start
                    systemctl status ssh

                    1 Reply Last reply Reply Quote 0

                    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