My homelab includes a small VPS hosted on the internet; let's call it myserver.example.com. It provides me with a static IP address and it mainly runs an application that gathers data for me. For security reasons, the only open port is the SSH one (22) with the password disabled, I can only access with an RSA certificate stored in my ./ssh directory. The application running there has a control panel which I can access that is on port 8080, but I have no intention of exposing an HTTP port on the internet just to access it.

To reach the control panel, the better solution is to create a ssh tunnel :

ssh -L 58080:localhost:8080 myserver

Enter fullscreen mode

Exit fullscreen mode