By default, Raspberry Pis don’t allow you to use SSH to access them. So, let’s change that!
To enable SSH, first enter sudo raspi-config
in the terminal.
Next, you’ll see a screen like this. Use your up and down arrow keys to navigate to Interfacing Options, then press Enter.
Once you’re in the Interfacing Options, use your up and down arrow keys to get to SSH, and press Enter.
Now you’ll see a prompt asking if you want SSH to be enabled. Use your left and right arrow keys to select Yes, then press Enter.
After a brief moment, you’ll see this success message. With OK selected, press Enter.
Lastly, back on the main page, use your left and right arrow keys to select Finish, then press Enter.