如何通过以太网将嵌入式 Linux 系统连接到 PC?

如何通过以太网将嵌入式 Linux 系统连接到 PC?

我有一块带有 Linux 系统的定制主板,我想通过 ssh 将它连接到通过以太网运行 ubuntu 的个人电脑。

在 Windows 上,我使用 Putty 连接开发板,但在 Linux 上我甚至不知道如何启动。我如何查看开发板是否已连接到 PC?我需要一些驱动程序,因为我使用的是 USB 转以太网电缆?一般来说,我应该如何连接开发板并使用 ssh 访问它?

谢谢您,如果问题太笼统,请见谅。

另外,我认为 USB 以太网适配器不能被识别为 ETH 连接,这是输出:

ifconfig
enx74da38a00a64: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 74:da:38:a0:0a:64  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 22911  bytes 2117386 (2.1 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 22911  bytes 2117386 (2.1 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp0s20f3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.184.118  netmask 255.255.240.0  broadcast 10.0.191.255
        inet6 fe80::49a6:4288:5209:c39b  prefixlen 64  scopeid 0x20<link>
        ether dc:fb:48:11:7c:b8  txqueuelen 1000  (Ethernet)
        RX packets 115883  bytes 118945795 (118.9 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 75655  bytes 12760493 (12.7 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

以及:

 dmesg
[ 2424.429598] usb 2-1: USB disconnect, device number 4
[ 2424.429771] xhci_hcd 0000:00:14.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
[ 2424.429795] ax88179_178a 2-1:1.0 enx74da38a00a64: unregister 'ax88179_178a' usb-0000:00:14.0-1, ASIX AX88179 USB 3.0 Gigabit Ethernet
[ 2424.429884] ax88179_178a 2-1:1.0 enx74da38a00a64: Failed to read reg index 0x0002: -19
[ 2424.429889] ax88179_178a 2-1:1.0 enx74da38a00a64: Failed to write reg index 0x0002: -19
[ 2424.457188] ax88179_178a 2-1:1.0 enx74da38a00a64 (unregistered): Failed to write reg index 0x0002: -19
[ 2424.457194] ax88179_178a 2-1:1.0 enx74da38a00a64 (unregistered): Failed to write reg index 0x0001: -19
[ 2424.457199] ax88179_178a 2-1:1.0 enx74da38a00a64 (unregistered): Failed to write reg index 0x0002: -19
[ 2425.593875] usb 2-1: new SuperSpeed Gen 1 USB device number 5 using xhci_hcd
[ 2425.621976] usb 2-1: New USB device found, idVendor=0b95, idProduct=1790, bcdDevice= 1.00
[ 2425.621982] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2425.621987] usb 2-1: Product: AX88179
[ 2425.621990] usb 2-1: Manufacturer: ASIX Elec. Corp.
[ 2425.621995] usb 2-1: SerialNumber: 000000000001CA
[ 2425.965607] ax88179_178a 2-1:1.0 eth0: register 'ax88179_178a' at usb-0000:00:14.0-1, ASIX AX88179 USB 3.0 Gigabit Ethernet, 74:da:38:a0:0a:64
[ 2425.985475] ax88179_178a 2-1:1.0 enx74da38a00a64: renamed from eth0

答案1

要查找哪些计算机连接到了您的网络,您必须登录路由器。它会显示所有已连接设备的列表以及每个连接的 IP。大多数路由器允许您通过 Web 浏览器登录。

然后,您可以在个人电脑上安装 Remmina(或类似的东西)来连接到网络上的另一台计算机,例如您在问题中提到的客户板。

相关内容