What is the best way to edit the config on a remote system?

NGINX should do it (I guess, never tried it, vpn is easier to setup):