• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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 431 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 16 Oct 2024, 18:28

      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 ) ?

      I 1 Reply Last reply 17 Oct 2024, 04:50 Reply Quote 0
      • A Offline
        arubislander @ds2k5
        last edited by arubislander 18 Oct 2024, 09:04

        @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 18 Oct 2024, 12:21 Reply Quote 1
        • S Offline
          saveurlinux
          last edited by 16 Oct 2024, 21:18

          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 18 Oct 2024, 05:06 Reply Quote 0
          • I Offline
            ikoz @ds2k5
            last edited by 17 Oct 2024, 04:50

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

            May the source be with you

            D 1 Reply Last reply 18 Oct 2024, 05:08 Reply Quote 2
            • D Offline
              ds2k5 @saveurlinux
              last edited by 18 Oct 2024, 05:06

              @saveurlinux

              thanks

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

              A 1 Reply Last reply 18 Oct 2024, 09:04 Reply Quote 0
              • D Offline
                ds2k5 @ikoz
                last edited by ds2k5 18 Oct 2024, 05:08

                @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

                S I 2 Replies Last reply 18 Oct 2024, 06:28 Reply Quote 0
                • S Offline
                  saveurlinux @ds2k5
                  last edited by saveurlinux 18 Oct 2024, 06:28

                  @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
                  • A Offline
                    arubislander @ds2k5
                    last edited by arubislander 18 Oct 2024, 09:04

                    @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 18 Oct 2024, 12:21 Reply Quote 1
                    • I Offline
                      ikoz @ds2k5
                      last edited by ikoz 18 Oct 2024, 11:21

                      @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 18 Oct 2024, 12:28 Reply Quote 0
                      • D Offline
                        ds2k5 @arubislander
                        last edited by 18 Oct 2024, 12:21

                        @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 18 Oct 2024, 12:28

                          @ikoz

                          thanks - did found it where to enable

                          adb shell works....

                          thanks @ALL

                          1 Reply Last reply Reply Quote 0
                          • A arubislander marked this topic as a question on 18 Oct 2024, 12:35
                          • A arubislander has marked this topic as solved on 18 Oct 2024, 12:35
                          • K Keneda moved this topic from General on 23 Oct 2024, 22:24
                          9 out of 10
                          • First post
                            9/10
                            Last post