Though instead of connecting to a remote VM, I've found it better to carry with me a small Linux device running an SSH server. This can even be a Raspberry Pi. As long as it has a NIC, with a USB-C adapter hooked to the iPad you can just use an Ethernet cable, and have an entirely local setup.
It defeats the purpose of carrying two devices around, but I find the iPad's screen and Folio keyboard to be very comfortable for long sessions, so this is my go-to setup for plane and train rides.