question

buddhafragt avatar image
buddhafragt asked

SSH over USB

Hello,

I have a problem with my Raspberry Pi 3A+,

since this has no LAN to access it via ssh, I would like to do it via usb. Unfortunately I have not been able to do it so far.
Does anyone know how to do this?


ssh
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

1 Answer
bathnm avatar image
bathnm answered ·

@buddhafragt if you re lucky installing a USB Ethernet adapter will give you a network connection that can then be used to connect to the device via SSH or the remote console. There is no other way of running SSH directly over USB.

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

buddhafragt avatar image buddhafragt commented ·

but the USB Ethernet adapter will not work out of the box? I have to install a driver, right?

0 Likes 0 ·
bathnm avatar image bathnm buddhafragt commented ·

Get a USB ethernet adapter and try it. I plugged a USB3 <> Ethernet dongle into VenusOS running an an RPI4 and it was detected.

[235324.894640] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[235324.931346] usb 2-1: New USB device found, idVendor=0b95, idProduct=1790, bcdDevice= 1.00
[235324.939815] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[235324.947197] usb 2-1: Product: AX88179
[235324.951027] usb 2-1: Manufacturer: ASIX Elec. Corp.
[235324.956100] usb 2-1: SerialNumber: 000000000000:F
[235325.343907] ax88179_178a 2-1:1.0 eth1: register 'ax88179_178a' at usb-0000:01:00.0-1, ASIX AX88179 USB 3.0 Gigabit Ethernet, 00:0e:c6:f9:f0:31

and

root@raspberrypi4:~# ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:0E:C6:F9:F0:31  
          UP BROADCAST MULTICAST  MTU:1450  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

So depending on the make and model it it highly likely to work

0 Likes 0 ·