Raspberry Pi  SSH tutorial: Use SSH to in order to remote control your Raspberry Pi.


SSH protocol can be very useful if we want to remote control our Raspberry Pi.  In this Raspberry Pi SSH tutorial I am using a Raspberry Pi A+ board but you can use any Raspberry Pi board you like.

So far, when we wanted to use our Raspberry Pi, we were using a keyboard, a mouse and a monitor via the HDMI port, or a touch screen like this one. The second method is easier and portable. I have prepared a detailed tutorial on that touch screen display a few weeks ago, you can check it out. But if we want an even easier solution, we can use our desktop computer, or laptop, or even our cell phone to remotely control the Raspberry Pi. Check this out, I am running a terminal on my Android cell phone and I can execute commands on my Raspberry Pi. I will now run a simple program I wrote in order to light up this LED. Cool, isn’t it? But very useful as well! Let’s see how we can achieve that!

Raspberry Pi Parts  – WHERE TO BUY

1. Raspberry Pi 2: http://goo.gl/H87sNN

2. 5” TFT Display: http://goo.gl/i5LJIM

3. Small Wi-Fi Dongle: http://goo.gl/jvq0MS

4. LED: http://bit.ly/375LEDS

5. Wires: http://bit.ly/WiresArduino

6. Resistor: http://bit.ly/ResistorsB

7. Breadboard mini: http://bit.ly/MiniBreadboard


Secure Shell or SSH is a cryptographic network protocol to allow remote login to other network services to operate securely over an unsecured network. Using SSH we can remotely login to a system and execute commands. In this case, the system we want to login to, is the Raspberry Pi. SSH protocol allow us to gain access to the command line of the Raspberry Pi from another computer, but only on the same network. Let’s now see how to setup our systems in order to achieve that.

SHH is built into the Raspbian distribution that we are using, so all we have to do is to setup the network connection for our Raspberry Pi board. I am using a Raspberry Pi A+ today, but you can use any Raspberry Pi board you like. I replaced the big WiFi dongle I was using so far, with this tiny and cheap one I got from Gearbest.com. It is working fine and it is plug and play, there is no need to install anything at all. It makes things more compact. You can find a link for it in the description of the video. All we have to do now, is to boot our Raspberry Pi once and set up the WiFi password. Next we have to run the command sudo ifconfig in order to get the IP address of our Raspberry Pi. Note this address as we are going to need it. In my case the address is this Most routers, assign a different IP address each time we connect our Raspberry Pi board to the network. So, we have to make the IP address of the Raspberry Pi a static one. In order to achieve that I logged in my routers settings page, and defined that I want my Raspberry Pi board to have a specific IP address, Check your Router settings and see how to set your Raspberry Pi to have a static IP.

Next let’s go to the computer. At first we have to download the Putty SSH client. I am using a Windows operating system so, I am downloading Putty for Windows. After running Putty we have to enter the IP of the Raspberry Pi, we press save in order Putty to remember the IP address and we press the open button. We get a warning message the first time we connect but we can ignore it. Next we have to login to Raspberry pi with username: pi and password: raspberry. Please note that as you type the password nothing appears on the screen, it is a security feature of Linux. That’s it, we are connected to the Raspberry Pi. We can type any command we like in the terminal. Check this out! I have developed a small Python program that turns on an LED, and another one which turns it off. So, I can now remotely execute the programs and turn the led on or off! We can achieve the same thing on our cell phone as well. If you use an Android device you can download JuiceSSH application which is an SSH client just like Putty. You have to configure it first just like we did with Putty, and then you can access your Raspberry Pi via your cell phone! This way we can remotely work on our Raspberry Pi without having to use a keyboard, a mouse or a monitor for the Raspberry Pi board, just a cheap WiFi dongle. I use this method all the time when I develop software for the Raspberry Pi, since I can work on my Desktop computer.


Never miss a video: Subscribe to educ8s.tv