Pi Zero SSH over USB

To access your Raspbery Pi zero over USB, follow these instructions:

  1. Flash the latest version of Raspbian onto an SD card at least 8 GB in capacity: (further details in this post)
  2. 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
  3. 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
  4. 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 no new lines and only spaces.
  5. 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
  6. Install Putty for windows: Putty Download , make sure you download “Putty.exe”
  7. 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)
  8. 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.




Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s