Quoting the documentation:
As of the November 2016 release, Raspbian has the SSH server disabled by default. You will have to enable it manually.
Enter
sudo raspi-config
in the terminal, first selectadvanced options
, then navigate tossh
, press Enter and selectEnable or disable ssh server
.
For headless setup, SSH can be enabled by placing a file named
ssh
, without any extension, onto the boot partition of the SD card.