I followed several steps to get an SSH over USB working. I followed the steps posted here.
My Raspberry Pi Zero is connected with a standard micro USB cable to my desktop computer (Ubuntu 16.04). Desktop is running the avahi-daemon
. I used the pi usb port labelled 'data'.
My pi is booted and running. ifconfig
shows the Raspberry pi is connected (enp0s22f2u2i1 Link encap:Ethernet). It also has an inet6 address. SSH to this i6 adress returns a port 22: network is unreachable
. Also ssh pi@raspberrypi.local
as posted in the tutorials gives an error: ssh: Could not resolve hostname raspberrypi.local: Name or service not known
.
I gave the rapsberry pi an IP adress using ifconfig enp0s22f2u2i1 192.168.1.222
. Ubuntu gives me a notification that the device is connected, however I still can't SSH to the Pi (ssh pi@192.168.1.222
). But this time the error message is different: ssh: connect to host 192.168.1.222 port 22: Connection refused
.
What else can I try to get SSH over USB to my Pi Zero working? Perhaps I do need to adjust the setting for the bonjour service (avahi-daemon
) running on my desktop?
ifconfig
on the Pi if the data cable is connected to another computer but you cannot connect to the Pi? If you are runningifconfig
on the other computer, you didn't assign an IP to the Pi, you assigned it to theenp0...
interface on that computer. That's not part of the Pi. That's a USB ethernet link on the PC/laptop/whatever. The pi is on the other end, but if you can't log into it, you can't configure the Pi side that way. – goldilocks Nov 14 '16 at 04:28