First we need to burn a SD card using Raspian Stretch Lite.
# After the image has been burned, enable ssh.
touch /Volumes/boot/ssh
Put the sd card in the pi, find the ip address of the pi, and remote into the pi with the default username and password.