Home Interests Raspberry Pi

How to Enable SSH on Raspberry Pi OS Without a Screen

howchoo
howchoo   (436)
August 9, 2023
4 minutes

Share

Interests
Posted in these interests:
pi • 91 guides

If you’re like me, you don’t always have a spare keyboard/monitor available to set up your Raspberry Pi. I rely heavily on SSH to set up my Pi, but in late 2016 Raspbian images started shipping with SSH disabled for security reasons. Fortunately, you can still enable SSH without a screen using the latest operating system, Raspberry Pi OS.

1 – Put the micro SD card into your computer

This guide assumes that you’ve already installed Raspberry Pi OS on your Pi. If not, go ahead and install it. Then put the SD card into your computer.

How to Install Raspberry Pi OS on Your Raspberry Pi
Get the new official Raspberry Pi OS on your Pi.

You’ll have to locate the boot directory, on my Mac it’s in /Volumes/boot.

If you’re on a Mac, open Terminal (Applications > Utilities > Terminal) and type:

cd /Volumes/boot

On Windows, you’ll need to use Command Prompt instead.

3 – Create an empty file called ssh

All you have to do is create an empty file called ssh.

touch ssh

If this file exists, ssh will be enabled when the pi is booted.

4 – Insert the SD card into the Pi and power on

Connect the Pi to a power source to power it on. As long as the Pi is connected via an Ethernet cable (or wifi), you should now be able to ssh in to the Pi.

How to Connect to a Raspberry Pi Remotely via SSH
The preferred (and most common) method of connecting to your Pi to run commands.

If you don’t have easy access to an ethernet connection, you can configure a WiFi connection similar to how we enabled SSH.

NEXT UP

HeaterMeter: Control your Grill Using a Raspberry Pi!

Fire up the summer with a new Pi project.
howchoo   (436)
November 28, 2023

With summer right around the corner, it’s time to fire up the grill! But who will watch the grill while you’re beating the heat? This year, kick things up a notch with your own Raspberry Pi-powered HeaterMeter. Don’t just throw a BBQ, be a part of it. HeaterMeter lets you keep a close eye on

Continue Reading

howchoo

 436 guides

Introducing Howchoo, an enigmatic author whose unique pen name reflects their boundless curiosity and limitless creativity. Mysterious and multifaceted, Howchoo has emerged as a captivating storyteller, leaving readers mesmerized by the uncharted realms they craft with their words. With an insatiable appetite for knowledge and a love for exploration, Howchoo's writing transcends conventional genres, blurring the lines between fantasy, science fiction, and the surreal. Their narratives are a kaleidoscope of ideas, weaving together intricate plots, unforgettable characters, and thought-provoking themes that challenge the boundaries of imagination.

Discover interesting things!

Explore Howchoo's most popular interests.

Explore