Connecting to the Pi

My first steps connecting to the Raspberry Pi.


In the package I bought, there was an SD card included containing the Raspbian operating system.  This is a linux distribution especially created for the Raspberry Pi.  It already contains quite some applications in a graphic user interface.

The fact that it comes with the package is handy, but for those who don’t have that privilege, there are some great tutorials out there that explain how to format any micro SD card and install Raspbian on it.  It’s really straight forward, so it shouldn’t pose any problems.

The first thing we’ll be doing is configuring “ssh”.  “ssh” is short for “secure shell”.  A tool that lets you connect to the terminal of another computer remotely.

In order to do so, we need to make sure, the Raspberry Pi is correctly configured to accept such “ssh” connections.

While you’re logged into the user interface of your Pi, go to the menu in the top left corner, choose Preferences, and choose “Raspberry Pi Configuration”.

In the dialog that follows, make sure the “SSH” interface is enabled in the “Interfaces” tab.

If you own a windows computer, connecting to the Pi can be done using a tool called “putty”.  You can find it here.

I happened to own a mac, and with mac you can do it simply via the terminal.  And that’s what I will do.

Open a terminal.

In order to connect to the Pi we need its IP address.  The IP address is the address on the network assigned to a network card through which a computer can be addressed.  By default the Pi is configured to automatically obtain an IP address from your router using a protocol called DHCP (short for Dynamic Host Control Protocol).  In short (very short), your Pi will get a random IP address.  If you’re not into networking, go ahead and search on google for more information on that.

Anyhow.  How to obtain the network address of the Pi.  This is quite simple.  By default the Pi is given a name through which it can be pinged on the network : “raspberry.local”.  In order to get the IP address just type the following command in the terminal :

ping raspberry.local

If all is well, you should be seeing some output like this.  However, the output will keep on coming.  Press ctrl-c to stop the output.

Schermafbeelding 2017-01-06 om 20.26.24.png

“ping” is a tool to check if a network card can be found on the network.  You can see some stats, but most importantly, you can see the network address.  It’s

Armed with this knowledge, we can start the “ssh” tool using the following command :

ssh pi@

the “pi@” prefix of the IP address denotes the user (“pi”) that’s used to connect.  After pressing enter, the “ssh” tool will prompt you for a password.  The default is “raspberry”.  Mind the lower case.

That should do it.  After you log on remotely, the prompt will change to something like this :

Schermafbeelding 2017-01-06 om 20.30.20.png




One thought on “Connecting to the Pi”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s