DEV Community

Luis Gustavo S. Barreto
Luis Gustavo S. Barreto

Posted on

Tutorial: How to access Raspberry Pi remotely from anywhere

In this article, we’ll share a brief tutorial to help you access your Raspberry Pi remotely, easily, and fast using a centralized SSH server. We can assure you that our step-by-step guide will make the process much easier.

Once ShellHub can improve your development process, Raspberry Pi boards are a great option to help you achieve success in your projects.

Requirements

On the Raspberry terminal type the following command to install Docker:

sudo apt install docker.io
Enter fullscreen mode Exit fullscreen mode

To launch the Docker, run the command below:

sudo systemctl enable --now docker
Enter fullscreen mode Exit fullscreen mode

Finally, set up the privileges for the current user:

sudo usermod -aG docker $USER
Enter fullscreen mode Exit fullscreen mode

Now reboot the Raspberry Pi to apply the changes:

sudo reboot
Enter fullscreen mode Exit fullscreen mode

Now we’re ready to install ShellHub!

Creating an account on ShellHub

Installing ShellHub on your device is very easy. But before starting to add your devices and enjoy all features available, it’s necessary to create an account on the platform. It’s for free, no credit card is required.

To do that, you only need to access ShellHub Cloud and register yourself.

After registering, you’re able to add up to 3 devices to your account and access them whenever you need them.

Installing ShellHub Agent

Now, it’s time to add the ShellHub agent to the RPI. When you access your account, a wizard will appear, showing the following steps to add devices to your account. Just copy the command, paste into Raspberry PI terminal and run it.

Your device will appear on the screen and you will have to confirm identity by clicking on accept button.

And we finished. Now You can access your RPI in an easy, fast, and safe way. If you have any doubts, feel free to check our documentation or contact us at contact@shellhub.io.

If you’re curious to know more about Shellhub, follow us on Twitter and LinkedIn.

Top comments (0)