Raspberry Pi online SSH (easy way)

Raspberry pi is a mini computer that can be carried easily. Usually people use Raspberry Pi as an embedded platform. And mostly people control or developing something with their Raspberry Pi using SSH protocol. because it much more simple and doesn’t take many space. Some people also already use their raspberry pi as an IOT platform. The IOT platform could be located far away from ourselves and if there’s an error we need to debug the raspberry pi from a long distance. In this tutorial I will show you you can ssh your Raspberry Pi from anywhere in the world.Raspberry Pi online SSH (easy way)

Step 1: Setting it up

I hope you guys already know how to setup a raspberry pi and connect it to the internet.

If you don’t know there tons of tutorial here in instructables or in google.

here is one of them:

https://www.raspberrypi.org/help/noobs-setup/

For this tutorial I use Raspbian OS because it is the most common OS used for the raspberry pi

If you manage to reach the raspberry pi terminal then we are ready to go to the next step

Step 2: Putty or Any SSH client

Windows user cannot use SSH directly to a linux machine. You need an SSH client to do that.

You can download a simple ssh client called putty here:

http://www.chiark.greenend.org.uk/~sgtatham/putty/…

Once you done download putty. get back to the raspberry pi terminal and type:

$ifconfig

That command will show you Raspberry Pi’s IP address.

Open putty choose SSH and then enter the Raspberry Pi’s local IP address then click open.

Now you don’t need a monitor for the raspberry pi anymore. you can control it using your PC or laptop.Raspberry Pi online SSH (easy way) Schematic

Step 3: Ngrok

Ngrok is secure tunnelling platform to make your device online. With this plaftorm you can make your web aplication or any aplication goes online with a very simple way.

https://ngrok.com/

To use Ngrok you need to download ngrok application to your raspberry pi. and to do that use the following command:

pi@raspberry~$sudo wget https://dl.ngrok.com/ngrok_2.0.19_linux_arm.zip

and then unzip it using:

pi@raspberry~$unzip ngrok_2.0.19_linux_arm.zip

That it, that’s the whole installation process. now you can use ngrok. To try using ngrok. if you have a web server/application that already active in certain port (for example:80) then use the following

pi@raspberry~$./ngrok 80

Now your web app can be access online from any where

 

For more detail: Raspberry Pi online SSH (easy way)


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top