I currently think about how to get access to the (latest) logs via openHAB cloud. I only have access to an openHAB instance via cloud and don’t want to set up any VPN or similar.
I could put a shell script to the Raspberry running openHABian with some tail command and execute it from a rule or with a “debug switch”. Then write the result, e.g. the latest 50 or 100 lines into a string item. That would be better than nothing.
If your needs for access to this remote machine ever grow, I recommend going down the VPN route. Tailscale is super easy to set up and configure. Just create an account, install the client and run one command and you are up.
It is possible to not rely on Tailscale for the control pane but that is of course more work. (Unlike traditional VPNs, Tailscale provides a network overlay mesh network, the control pane is used for nodes in your network to find each other and broker the key exchange, after that your machines talk directly to each other, not through Tailscale’s services where ever possible).
Cloudflare tunnels also come highly recommended, though I’ve less experience with those.
Anyway, if you are running openHABian Tailscale is one of the options in openhabian-config and if not, it’s just an apt install (or what ever package manager you are using) away.