To access your Raspbery Pi zero over USB, follow these instructions:
- Flash the latest version of Raspbian onto an SD card at least 8 GB in capacity: (further details in this post)
- In windows explorer, navigate to the SD card boot partition and find the Config.txt file, edit in notepad and add to the bottom: dtoverlay=dwc2, save the file
- SSH is disabled by default, so to enable it make a file called: SSH, save this and ensure it that it has no extension, this will enable SSH access
- Open up the file cmdline.txt , find the line where it says rootwait, after this word insert the following: modules-load=dwc2,g_ether ; ensure there are now new lines and only spaces.
- You are done with the SD card, insert this into the Pi Zero and wait for it to boot up, it will take about 2 minutes for the first time, whilst it primes the operating system
- Install Putty for windows: Putty Download , make sure you download “Putty.exe”
- Now SSH into the Pi Zero using the default hostname: raspberrypi.local and do this on port 22; log in using the default username: pi , and password: raspberry (*it is recommended to change this after for security reasons)
- You should now have terminal access, if this is all you need stop here.
I would like to give credit to Andrew’s Blog, where I obtained these configuration parameters.