Connecting a monitor, mouse and keyboard to your Raspberry Pi can be tedious. If you’re running just a couple of Terminal commands, you can execute commands on your Raspberry Pi from a Windows or Mac computer using an SSH client.

The first thing you need to do is find out your Raspberry Pi’s internal LAN IP address on your network. Chances are you can view a list of connected devices in your router’s GUI.

Check the back of your router – it should have instructions on how to log in to this.

As you can see, my internal IP address for the Raspberry Pi is This IP address is specific to your Raspberry Pi and each device connected to your WiFI network will have one similar to this. Yours will be different to mine. It will always begin with 192.168.XX.XXX. You wouldn’t be able to connect to your Pi using this IP address if you were on a different WiFi network, for instance your neighbour’s, or from an Internet Cafe.

Now, let’s connect to the Raspberry Pi.


Windows does not ship with an SSH client by default, so you’ll have to download one. I always recommend PuTTY, which you can download from here.

To be continued.

Mac OS X

Lucky you! Mac OS X has a built-in SSH client, so you don’t have to download any additional software. Click the magnifying glass in the top-right of your screen next to the time and Spotlight will open.

Type ‘Terminal’ and hit enter (or return) on your keyboard.

A screenshot of Spotlight on OSX

The Terminal will open. Type in the following command to connect:


Obviously, substitute [USERNAME] for the Raspberry Pi user you’d like to connect to and [IP ADDRESS] for your internal IP address that we found earlier in the tutorial.

The default user on Raspbian has username pi and password raspberry – so if it’s a fresh install, chances are this will work for you.

Connecting to a Raspberry Pi in the Terminal on Mac OSX using SSH

You should now be logged in to your Raspberry Pi and able to execute commands. Have fun! 🙂