We have a remote Ubuntu 14.04.3 LTS server with SSH, which we use for Selenium tests. I have to login to https://mail.live.com/ from the server's IP address, and confirm the verification code in my email or phone, which I can't do with Selenium (Microsoft doesn't let me login from this IP until I confirm the code). How can I connect to the server with graphic user interface and use Firefox or Chrome? I tried a text browser but it doesn't support JavaScript, which is required.
My local computer is running Windows (10).