[英]Raspberry pi zero ssh over usb in manjaro
I want to connect to a raspberry pi zero (running raspbian lite) over ssh by using the ethernet over usb option.我想通过 usb 选项使用以太网连接到 ssh 上的树莓派零(运行 raspbian lite)。 I've modified the
config.txt
and cmdline.txt
, and create the ssh
-file as described here , then connected the pi to my laptop using a mirco-usb-cable.我修改了
config.txt
和cmdline.txt
,并按照此处所述创建了ssh
文件,然后使用 mirco-usb-cable 将 pi 连接到我的笔记本电脑。 The usb0-interface shows up as soon as the pi is plugged in, gets an Ipv6 and Ipv4 address, and I have configured the Ipv4-Method to Link-Local-Only.插入 pi 后,usb0 接口立即显示,获取 Ipv6 和 Ipv4 地址,并且我已将 Ipv4-Method 配置为 Link-Local-Only。
However, I can't find the pi in the network.但是,我在网络中找不到 pi。 I did
我做了
ping raspberrypi.local
which returns an error Name or service not found
.它返回错误
Name or service not found
。
I am running Manjaro Linux (the GNOME variant) as OS.我正在运行 Manjaro Linux(GNOME 变体)作为操作系统。
If anyone else is running into the same problem, it works now for me after I found this incredible helpful solution .如果其他人遇到同样的问题,在我找到这个令人难以置信的有用解决方案后,它现在对我有用。
As some additional note: I got an error message after step 4: avahi-resolve -n raspberrypi.local
saying that the daemon is not running.作为一些附加说明:我在第 4 步之后收到一条错误消息:
avahi-resolve -n raspberrypi.local
说守护程序没有运行。 I solved this by starting the corresponding daemon我通过启动相应的守护进程解决了这个问题
$ sudo systemctl start avahi-resolve.service
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.