If you’re like me and you have many Raspberry Pis it’s sometimes a pain to hook up a monitor to the little computer to enable SSH on the first boot. This will probably only work if you’re on a Mac. Definitely won’t work on windows, maybe would work on linux, but probably not without some path modification.
The idea is to touch a file called ssh in the boot directory of the Pi’s sd card.
I learned today if you execute
or for ubuntu
SSH will be enabled on the first boot. Very handy, love it!