Can't ssh into Raspberry pi zero over USB

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

Can't ssh into Raspberry pi zero over USB

Post by /RaspberryPi »

  • So I touched ssh in /boot
  • I appended in /boot/config.txt

dtoverlay=dwc2
  • edited cmdline.txt to have "modules-load=dwc2,g_ether" after "rootwait"
  • appended in /etc/network/interfaces

allow-hotplug usb0 iface usb0 inet static address 192.168.7.2 netmask 255.255.255.0 network 192.168.7.0 broadcast 192.168.7.255 gateway 192.168.7.1
  • Booted it up and edited in gnome network settings the USB Ethernet to be

Address: 192.168.7.1 Netmask: 255.255.255.0 Gateway: 192.168.7.1 What I get:
  • can only ping to the address specified 192.168.7.1 and 192.168.7.2 is not answering.
  • If connecting to the IP 192.168.2.1 via ssh then password will be always wrong
  • If setting in gnome settings the ip to 192.168.7.2 then the ping will work but ssh password will still be wrong (which is the default password 'raspberry')

submitted by /u/ReakDuck
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”