Raspberry Pi - How To Enable SSH
Hi Guys!! Today we are going to show you how to enable SSH on a Raspberry Pi! This is super easy and you have a lot of options so get ready for some fun. We are assuming that you are running Raspberry Pi OS. If you’re using another OS your milage may vary.
From the GUI - Raspberry Pi - Enable SSH
- Click on the Raspberry Menu
- Go to preferences
- Launch “Raspberry Pi Configuration”
- Click on the “Interfaces” tab
- Click on the button to enable SSH
- Click OK
From the Terminal
- Run this command to launch the config tool:
sudo raspi-config
- Select “Interfacing Options”
- Select SSH
- Select Yes
- Select OK
Headless SSH Setup for Raspberry Pi
It is possible to enable SSH ( and Wifi settings ) at the time the SD card is written.
Often times people want to setup a headless Raspberry Pi system. This system would never be connected to a keyboard or monitor but would need to be reachable over the network.
Use case:
- Headless Raspberry Pi system with no keyboard or monitor
- Need to connect over the network with SSH on first boot
- No other connection method.
Easy solution:
The easy solution to this is to just use a recent version of the Raspberry Pi Imager tool. This tool contains options to enable ssh and enter all of your wifi settings when the SD card is written. This allows you to have all of your settings baked right into your SD card. To do this you need to access a hidden menu.
From the Imager application use this key combo on a PC:
ctrl+shift+x
And this combo on a Mac:
cmd+shift+x
Then just fill in your details and write the SD card.
Potentially Helpful Video
This is a much longer video but it does cover at least one method of enabling SSH and it includes a ton of other info: