SSH was deactivated by default to make external access harder. In order to avoid this risk when activating SSH manually, you should change thepassword for the 'Pi' user as soon as possible – and definitely before connecting to the internet.
There are four ways to enable SSH:
Solution 1: create ssh file in the boot directory on the SD card
If you don’t have the ability to operate Raspberry directly via keyboard and screen, you can use a simple trick instead: Use an external computer to access the microSD card on which you have installed Raspbian and then create a file called ssh in the boot directory. It’s important that you do not use a file extension in this case and make sure that it is not automatically added (this often happens with Windows). If you then reboot the mini computer, SSH access will be enabled.
Solution 2: enable SSH server via desktop
If you connect the mini computer to your keyboard, mouse, and monitor, you can also easily turn on SSH on your Raspberry Pi using the desktop interface. To do this, open the start menu and navigate to 'Raspberry Pi Configuration' via the menu entitled 'Preferences'. Under the item 'Interfaces', you will find, among other things, the corresponding entry for SSH including the default setting ('disabled = deactivated'), which you can reverse at this point. Then confirm the change by clicking on 'OK'.
Solution 3: enable SSH via terminal in raspi-config
If you have connected the keyboard and screen to your Raspberry, you can also enable SSH access via the terminal. To do this, start the command line and type the following command: