Skip to content

Instantly share code, notes, and snippets.

View gruvw's full-sized avatar
💻
Coding as always

Lucas Jung gruvw

💻
Coding as always
View GitHub Profile
@gruvw
gruvw / SSH over USB on a Raspberry Pi.md
Created March 21, 2025 09:06 — forked from etoxin/SSH over USB on a Raspberry Pi.md
SSH over USB on a Raspberry Pi

Our long term goal will be to use SSH over USB. This means that we have to configure Raspbian to treat the USB port like an ethernet port. Mount the micro SD card in a computer (not Pi Zero) and open it with Finder, or Windows Explorer, or whatever it is that you use.

The first thing that you want to do is open a file at the root of the mounted drive called config.txt. In this file you want to add the following line at the very bottom:

dtoverlay=dwc2

The above line will set us up for the next file that we alter. The next file we alter is cmdline.txt, but it is a bit different. Parameters in this file are not delimited by new lines or commas, they are delimited by space characters. In this file we want to add the following: