How can I display a window on my local mac from an app running on ubuntu (e.g. firefox) ?

Posted February 4, 2019 2.2k views
DigitalOceanApplicationsUbuntu 18.04

I tried ssh -X user@ipaddress on my local mac then on ubuntu server edited sshconfig with ForwadingX11 yes, and tried ForwardAgent yes, ForwardX11 yes, ForwardX11Trusted yes and also did similar sshd_config. I tried export DISPLAY=:0, and a few other permutations I found online that work for others but not for me. I saw one similar question on this forum a 4 months ago where the only answer was to install x2go. I haven’t tried that. Are there any simple commands to do this?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


Yes it should work with x2go. You need to install the x2go server on your droplet and the x2go client on your PC. Then you should be able to connect.

Another option would be to install a GUI like Gnome desktop and then install xRDP on your droplet. That way you could then use any RDP client to connect to your droplet.