![]() ![]() I am living in Germany and I chose a VPS solution from At the time I’m writing this article, the solution is very affordable, only 1Euro/month and you get 1Core CPU, 0,5GB and 20GB SSD. Or even better, we can choose a VPS (virtual private server) solution from one of the many providers. For this solution we’d need a Linux computer that will be anytime available and directly accessible from Internet. I would like to be able to access the Raspberry Pi from anywhere, not only from my local computer. I’ll write more about this project in a different post, for now let’s focus on ssh tunnel subject, which is quite a challenging part. The Raspberry Pi is used in a remote house to convert a classic alarm system to a smart alarm (with Internet and SMS functionality). My concrete case where I need this kind of implementation is a Raspberry Pi connected to Internet using a 3G USB dongle. How can you achieve this, I’ll explain you in the following lines. Reverse SSH tunneling allows you to create a connection from the remote computer to a local computer and using this established connection to set up a new connection from your computer back to the remote computer. This computer could be placed behind a firewall or a router (NAT) whose rules or settings cannot be changed.Īn easy and practical solution that could help us in this case is to set up a reverse SSH tunnel on Linux. Now, in order to access the internal website from a remote SSH server, just type the address the browser.There are cases when a remote computer could be hard to reach. To create a reverse tunnel, use the following command: For example, you want an external server (192.168.1.90) to access your Intranet site (not published on the Internet). You can allow a remote server to access a local port on your computer or a port on another computer on your local network through an SSH tunnel. There is another SSH tunnel use case - remote TCP forwarding. Remote TCP Forwarding (Reverse SSH) to a Local Computer ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |