jeclark2006
Posts: 9
Joined: Wed Aug 09, 2017 6:45 pm

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

Thu Aug 10, 2017 2:03 am

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?

User avatar
DougieLawson
Posts: 39303
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

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

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).
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

jeclark2006
Posts: 9
Joined: Wed Aug 09, 2017 6:45 pm

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

Thu Aug 10, 2017 3:41 pm

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.

Return to “Beginners”