Page 1 of 1

Configuring the PI Zero to use the USB as an ethernet interface.

Posted: Thu Aug 10, 2017 2:03 am
by jeclark2006
I just received the PI Zero. I don't have a serial nor a display+keyboard console. I downloaded the full raspbian disk image.

If I wait long enough for the DHCP requests to time out on both the Mac and the PI Zero, eventually the PI Zero seems to self allocate an address and when I ping:

$ ping raspberrypi.local
PING raspberrypi.local (169.254.94.73): 56 data bytes
64 bytes from 169.254.94.73: icmp_seq=0 ttl=64 time=0.404 ms

But when I try ssh

$ ssh raspberrypi.local
ssh: connect to host raspberrypi.local port 22: Connection refused

And telnet gives a slightly different diagnostic.

$ telnet raspberrypi.local
Trying fe80::3366:ca5d:2345:6746...
telnet: connect to address fe80::3366:ca5d:2345:6746: Connection refused
Trying 169.254.94.73...
telnet: connect to address 169.254.94.73: Connection refused
telnet: Unable to connect to remote host

Is there something in the 'config.txt' file that needs to be set for ssh/telnet to be enabled.

Or do I have to find a EXT4 file system package for the Mac to mount the Linux FS and manipulate the usual config files there?

Re: Configuring the PI Zero to use the USB as an ethernet interface.

Posted: Thu Aug 10, 2017 2:59 pm
by DougieLawson
Pull the sdcard, create a file called ssh or ssh.txt on the root of the /boot partition (/dev/mmcblk0p1).

Re: Configuring the PI Zero to use the USB as an ethernet interface.

Posted: Thu Aug 10, 2017 3:41 pm
by jeclark2006
DougieLawson wrote:
Thu Aug 10, 2017 2:59 pm
Pull the sdcard, create a file called ssh or ssh.txt on the root of the /boot partition (/dev/mmcblk0p1).
Thanks. I did find that 'hint' in this announcement.

https://www.raspberrypi.org/blog/a-secu ... ian-pixel/

Things are working now. I was also surprised to find that the W for the PI Zero meant 'WIFI', which I've setup.