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

    Is it possible to USB-Network ssh access ?

    Scheduled Pinned Locked Moved Solved Support
    10 Posts 4 Posters 450 Views 3 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.
      • D Offline
        ds2k5
        last edited by ds2k5

        Hi,
        is it possible to enable USB-Networking
        on UBPort 20.04 to access over USB-Cable
        with SSH to the Device ? ( user + password no public_key )

        If yes how to do this ( Enable USB-Network ) ?

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

          @ds2k5
          Currently a fully booted UT device does not expose ssh-over-usb out of the box. As this is Linux you could no doubt get it to work. But you'd probably have some digging to do.

          Is there any particular reason you want ssh-over-usb specifically? Would getting adb to work or ssh-over-network also be good enough for you?

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (20.04 DEV)
          JingPad (24.04 preview)
          Meizu Pro 5 (16.04 DEV)

          D 1 Reply Last reply Reply Quote 1
          • saveurlinuxS Offline
            saveurlinux
            last edited by

            if you have adb installed, you can use:

            sudo adb shell
            

            if you have clickable installed, you can use:

            clickable shell
            
            D 1 Reply Last reply Reply Quote 0
            • ikozI Offline
              ikoz @ds2k5
              last edited by

              @ds2k5 You can enable the SSH server from UT tweak tool.

              May the source be with you

              D 1 Reply Last reply Reply Quote 2
              • D Offline
                ds2k5 @saveurlinux
                last edited by

                @saveurlinux

                thanks

                adb devices say there is no device
                but it is connected by usb cable

                arubislanderA 1 Reply Last reply Reply Quote 0
                • D Offline
                  ds2k5 @ikoz
                  last edited by ds2k5

                  @ikoz

                  thanks

                  I can see that SSHD is running on Ubuntu
                  but I need Network via USB Cable
                  but did not know how to enable this

                  that I can do ssh phablet@USB-IP-Addr

                  Simular as PostmarketOS do for example:

                  https://wiki.postmarketos.org/wiki/USB_Network

                  saveurlinuxS ikozI 2 Replies Last reply Reply Quote 0
                  • saveurlinuxS Offline
                    saveurlinux @ds2k5
                    last edited by saveurlinux

                    @ds2k5 did you tried this ?
                    Using Ubuntu Tweak

                    • enable ssh server
                    • restart your phone
                    • follow recommendations describe their https://docs.ubports.com/en/latest/userguide/advanceduse/ssh.html
                    1 Reply Last reply Reply Quote 0
                    • arubislanderA Offline
                      arubislander @ds2k5
                      last edited by arubislander

                      @ds2k5
                      Currently a fully booted UT device does not expose ssh-over-usb out of the box. As this is Linux you could no doubt get it to work. But you'd probably have some digging to do.

                      Is there any particular reason you want ssh-over-usb specifically? Would getting adb to work or ssh-over-network also be good enough for you?

                      πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                      Happily running Ubuntu Touch
                      Google Pixel 3a (20.04 DEV)
                      JingPad (24.04 preview)
                      Meizu Pro 5 (16.04 DEV)

                      D 1 Reply Last reply Reply Quote 1
                      • ikozI Offline
                        ikoz @ds2k5
                        last edited by ikoz

                        @ds2k5 would USB tethering or rndis work?
                        For adb to work you need to enable developer mode in settings, if it still doesn't it's a porting bug.

                        May the source be with you

                        D 1 Reply Last reply Reply Quote 0
                        • D Offline
                          ds2k5 @arubislander
                          last edited by

                          @arubislander

                          Is there any particular reason you want ssh-over-usb >specifically? Would getting adb to work or ssh-over-network >also be good enough for you?

                          Yes that I do not have a WiFi most time
                          But USB-Cable and PC/Laptop.
                          So I can access the Device only by USB-Cable.

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            ds2k5 @ikoz
                            last edited by

                            @ikoz

                            thanks - did found it where to enable

                            adb shell works....

                            thanks @ALL

                            1 Reply Last reply Reply Quote 0
                            • arubislanderA arubislander marked this topic as a question on
                            • arubislanderA arubislander has marked this topic as solved on
                            • KenedaK Keneda moved this topic from General on
                            • First post
                              Last post