In my current setup, I have a server running at home that my laptop can connect to remotely (e.g., from Starbucks) via SSH. To do this, I needed to get a static IP from my ISP (since they use CGNAT), and my router at home forwards a port to my server.
I'm moving soon and won't have access to the router at my new address and probably won't have a static IP either. But, I'd still like to be able to remotely access my server which will also live at this new address.
Based on my limited understanding of networking, here's my plan: First, I'll rent a VPS and run my own wireguard VPN on this VPS. Then, I can connect both my laptop (from Starbucks) and home server (connected to some router, potentially behind CGNAT too) to the VPN running on this VPS.
Will this work? Are there things that could complicate this?