Trying to get SSH over USB to work (Raspberry pi Zero W)

Raspberry Pi Asked by DaMightyZombie on September 26, 2020

I’m trying to connect to my Raspberry Pi Zero W using SSH over USB. I’ve seen other people do it, and I have tried multiple different tutorials over the last few days, but none of them worked. I’ve seen this question being asked and answered many times, but all answers i found seem to be outdated, because none of them worked.
I have connected my Pi to my computer (yes, I have used the correct USB plug) with a modified image of the latest version of raspbian stretch lite.
What I modified:
-Added an empty file called “ssh” to the root dir
-Added dtoverlay=dwc2 to config.txt
-Added modules-load=dwc2,g_ether to cmdline.txt (after rootwait)

Now, when i plugged the pi into my PC, It got recognized as a “Serial COM port”.
It should be recognized as an RNDIS Gadget, according to the tutorials.
I then downloaded and installed the “Acer Inc. Other hardware – USB ethernet RNDIS gadget” driver from here.
Now, when i plug in my pi, it shows up like this in the device manager:Device Manager Screenshot
But I still could not ping it / connect to it via PuTTY.
ping raspberrypi.local
Sorry for the german. It says “could not find host raspberrypi.local”.

I then tried to find the IP address of the Pi in the new network, and i noticed it had none. My PC has an address ( on the new network, just not the Pi.
Any Idea what I could do?

I still can’t figure this out. I hope my progress so far will help others with the same problem, since all online resources seem to be outdated by around 3 years.

One Answer

I had the same problem on a linux system. For me the solution was to install "avahi-daemon". The underlying problem is the failing DNS for the USB-device (meaning: the name raspberrypi.local has to be resolved somehow) I hope this can point in the right direcetion:

On Windows, it seems, that you have to install something called Bonjour service.

Relating to this article:

Windows doesn’t have Zeroconf support out of the box, but a few popular applications slip it in for their own needs, including Skype, Apple’s iTunes and Adobe Photoshop CS3 or later. So you might not need to add anything at all!

Otherwise, it’s most easily installed using Bonjour Print Services for Windows 2.0.2.

... ->

Answered by eli on September 26, 2020

Add your own answers!

Related Questions

Raspberry Pi 3 high IO

3  Asked on December 28, 2021 by cx24


Run application with other user than root

2  Asked on December 28, 2021


Raspberry Pi Zero W Semi Freeze

0  Asked on December 26, 2021 by david-kester


How to change the Menu Icon in Raspbian

3  Asked on December 24, 2021 by yanko


LED matrix won’t light up properly

1  Asked on December 22, 2021 by maiki


How to autostart Kodi at boot?

7  Asked on December 21, 2021 by mario-serda


Resolution Issue

2  Asked on December 19, 2021 by matt-mas


How to disable wifi in Raspberry Pi 4

3  Asked on December 14, 2021 by jb


Booting up feh at launch

2  Asked on December 12, 2021 by simyo-paris


pigpio I2C reply value

2  Asked on December 12, 2021 by user3435167


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP