1

So I tried setting up my headless pi with Raspbian like I usually do:

  • Flash Raspbian to µSD (using Etcher)

  • add zeroconf address to cmdline.txt (ip=169.254.10.1)

  • add empty file 'ssh' to boot partition without extension

But this time, when I try to ssh into my pi (ssh pi@169.254.10.1) it says:
ssh: connect to host 169.254.10.1 port 22: Connection refused

Anyone who knows what might be wrong?
(the steps mentioned above are the only ones I've done)

Dr. Casual
  • 111
  • 1
  • 4

1 Answers1

1

ssh is activated if there is an empty ssh file in the boot partition!

Ref.: https://www.raspberrypi.org/documentation/remote-access/ssh/

MatsK
  • 2,791
  • 3
  • 16
  • 20
  • you are correct, but as OP stated he already created enpty ssh file in boot partition. – Chetan Bhargava Jan 12 '18 at 22:19
  • There is a huge difference between "root" and "boot" partition, read the question again @ChetanBhargava – MatsK Jan 12 '18 at 22:32
  • @Dr. Casual: Is your empty ssh file still there? Where exactly? In some cases this file gets deleted after restart, see comments here: https://www.raspberrypi.org/blog/a-security-update-for-raspbian-pixel/ – Fabian Jan 12 '18 at 22:44
  • @MatsK well, I assumed that OP did a typo as his process "usually" works fine. – Chetan Bhargava Jan 12 '18 at 22:48
  • @ChetanBhargava And I assume that the OP can spell correct. – MatsK Jan 12 '18 at 23:24
  • I indeed meant te boot partition. Everything I did usually works fine, but not this time and I can't figure out why and that really bugs me. Anyways, flashing my card again solved my problem. – Dr. Casual Jan 13 '18 at 00:33
  • Note that "boot partition" and the /boot directory in the second partition are not the same thing when you access the card mounted on another computer. You want to use the former. – goldilocks Jan 13 '18 at 13:05