Attaching to a Raspberry Pi's Serial Console (UART) for Debugging
jeffgeerling.com
jeffgeerling.com
From the documentation page on remote access
For headless setup, SSH can be enabled by placing a file named ssh, without any extension, onto the boot partition of the SD Card. When the Raspberry Pi boots, it looks for the ssh file. If it is found, SSH is enabled and the file is deleted.
https://www.raspberrypi.org/documentation/computers/remote-a...