PiWare

Connecting up to the Pi
Now that you have set up the Raspberry Pi and it is connected to the internet, we will now need to get a connection to it. We will be using SSH for this, a tool that is used for remotely connecting to computers and servers. This article will guide you through how to use SSH to connect through the network to your Raspberry Pi.

Opening up the Terminal

Windows

  1. On your keyboard, press Windows Key + R. This will open up a run box.
  2. Type in “powershell” and hit enter. This should open up a window where you can type in commands.

Mac

  1. Open up the launch pad and locate the "Other" folder.
  2. Open up the Terminal application.

Using the Terminal to connect to the Pi using SSH
  1. Now that you have a terminal opened. You will need to type in the following command.

    ssh pi@raspberrypi.local

  2. If all goes well, it should say

    pi@raspberrypi.local’s password:

    The default password should be “raspberry” unless you changed it. Type this in and then hit enter.

  3. The last line should now say:

    pi@raspberrypi:~#

    This means you are now done. If it has not done this and given you some sort of error, the next section will go through the common issues and all the solutions.

Common Connection Issues
  • I receive the following error:
    ssh: connect to host raspberrypi.local port 22: Connection refused
  • This means something has gone wrong in the setup process and SSH is not enabled. You may need to force it on by either adding an empty file called ssh to the boot partition or just reinstall the OS.

  • I receive the following error:
    ssh: Could not resolve hostname raspberrypi.local: No such host is known.
  • This either means that the Raspberry Pi has not connected or there is an issue with the hostname service. If this issue persists, you may like to try out the Raspberry Pi Finder from Adafruit. This will connect VIA direct IP, completely bypassing the hostname service.

You have now successfully connected to you Raspberry Pi via SSH
Congratulations, you have successfully used SSH to remotely connect to your Pi. Using this terminal, you can now set up anything you would like to. In the next artice, we will be looking into installing Docker into the Pi and trying to run some applications.