Raspberry Pi SSH

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.

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.

Pi Book Large

If you want to see it done visually then check out my video below, if you like my stuff, please subscribe so you can stay up to date on all the latest and greatest Raspberry Pi projects, guides and much more.

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

How to SSH into Raspberry Pi

Firstly we will need to have Raspbian installed if you haven’t installed it 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.

Enabling Raspberry Pi SSH Server

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.

Windows: SSH 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.

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.

Mac: SSH to 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. (Also feel free to comment on anything regarding this guide)

Ultimate Book of Pi Bottom
The Raspberry Pi Crash Course

The Raspberry Pi Crash Course

Enter your email address below to get the

Raspberry Pi crash course delivered straight to your inbox

Please check your inbox for a confirmation email!