Not OP, but I've dabbled doing just that with a Digital Ocean droplet and using VS Code's Remote SSH extension. It's not lag free, but it's nice being able to access the same dev environment from multiple computers.
And while most would not fly that often, being able to code when internet is not available or in a bad shape is not only a 'nice to have' option, but almost a 'must have'