Raspberry Pi SSH is a way we’re able to communicate to the Pi over a network, so we no longer need to be physically located near the Pi.

Raspberry Pi SSH

SSH or secure shell for anyone who is unfamiliar with the term is a common cryptographic protocol for communication over networks. It allows us to be able to use command-line without actually being on the Pi.

This technology is fantastic for a lot of Raspberry Pi projects that don’t require you to be on the Pi itself.

SSH is super easy to use once you get it set up and running. If you need to access the Pi via SSH outside your home network then you will need to look at port forwarding.

Jump into our tutorial below to learn all about SSH and how you can set it up with the Raspberry Pi.

Equipment

The list below is the equipment that I have used in this guide.

Raspberry Pi

Keyboard

Mouse

Power Supply

Raspberry Pi Case

Ethernet Cord or Wifi dongle

Video

If you want to see how to set up SSH visually then check out my video below.

Like the video? Please subscribe or follow us on social so you can stay up to date on all the latest and greatest Raspberry Pi projects, guides and much more.

Enabling the Raspberry Pi SSH Server

Before we get started with learning how to SSH into the Raspberry Pi, we will first need to have Raspbian installed.

If you haven’t installed Raspbian, then check out my guide on installing NOOBS Raspberry Pi. This guide will take you through all the steps you need to do before you start this guide.

The Raspberry Pi SSH Setup requires us to use the raspi-config tool to allow SSH connections. To do this, we will need a keyboard, mouse and a screen for the Pi. Once we have done this, we no longer require any of these pieces of equipment.

1. First turn on and log in to the Raspberry Pi. (Remember default username is pi and password raspberry)

2. If you need the IP Address now would be a good time to get it. To do this simply type:

hostname -I

3. Now type the following command:

sudo raspi-config

4. Now in here go to Interfacing Options->SSH (Previously Advanced Options->SSH)

5. Enable SSH and reboot the Pi.

Now that we have enabled SSH we will need to connect from another computer.

Using Windows to SSH to the Raspberry Pi

If you’re a windows user, then this process is pretty straightforward. We will need to get a free application called Putty first and use that to connect to the Raspberry Pi SSH.

1. To SSH on windows, we will need an additional tool called Putty. You can download putty here.

2. Download the putty.exe under “For Windows on Intel X85”

3. Now once that is installed load the putty.exe

4. In this screen, we will need to input the IP of the Raspberry Pi into the Host Field.

5. The port should be 22

6. Now click on open

7. You will now see a prompt with a security alert, just click yes to this.

8. Now login with the default username pi and password raspberry. (Unless you have already changed this)

Raspberry Pi Putty

You’re now able to connect to the Pi and send commands remotely rather than needing to be at the Pi itself.

Using a Mac to SSH to the Raspberry Pi

To connect to the Raspberry Pi SSH on Mac or Linux is very easy all we need to do is connect using the terminal.

If you’re using a Mac, then we will be able to use the terminal to connect. If you’re using a Mac, this is found under utilities within the applications folder.

1. First, open the terminal.

2. Replacing 192.168.1.103 with your own Raspberry Pi IP address issue the following command.

ssh pi@192.168.103

3. You will now receive a security warning type yes.

4. You should now see a prompt for the password for the user pi. The Raspberry Pi default password is just raspberry. (I highly recommend changing this)

5. You should now be able to control the Raspberry Pi through the terminal.

Raspberry Pi Mac SSH

Troubleshooting

If you’re having trouble trying to get this to work here are a few tips you can try to get the connection to work.

  • “I am getting a connection error”
  • Ensure you have the correct IP address and you have also enabled SSH in the raspi-config
  • Make sure the Pi is connected to the same network as you are on. (Unless of course you have setup port forwarding and connecting outside the network)
  • “I am getting access denied”
  • Make sure you are using the correct password, the default is raspberry but remember you may have changed it earlier.

I hope this guide has shown you how to SSH to the Raspberry Pi. However, if you still have trouble feel free to drop us a comment below.

Ultimate Books of Pi Bottom
Get projects delivered to your inbox weekly.