I have a laptop and a server. On the same lan network, I can ssh with X11 forwarding to the server via:
ssh -Y -C [email protected]
When I execute anything that opens an x11 window, things work. For example, xterm and chromium-browser.
On my router, I have port 22 forwarded to my server. Thus, when I am outside my network, I can successfully ssh into my server via
The problem is when I want X11 fowarding. When I add in the flags "-Y -C", I can still log in. However, windows are not forwarded as I get errors such as these: - (chromium-browser:21079): Gtk-WARNING **: cannot open display: - xterm Xt error: Can't open display: xterm: DISPLAY is not set
I swear this used to work but for some reason, it doesn't now. The only change I can think of recently was updating software on the server (10.04 to 10.04 with updates). Also, on my laptop, I recently updated to ubuntu 11.04.
I think it has to be a recent issue as I would have caught this long before. Also, I don't recall this error every occuring before when I opened x11 windows. I think it has to do with my laptop, as when I try similar things on other servers (outside network, at school), x11 windows also doesn't open (and they have before).
I've googled but could not fine anything relevant. X11 forwarding must be on as it works internally. Externally, it doesn't. Please let me know your suggestions for debugging or fixing.