Blank Window When SSH Forwarding X11 Sessions

There are a number of applications running on our servers that have GUI’s that I need to display on the Mac in my office. While the traditional method of exporting the server-side display to my desktop works, it is inherently insecure because the entire session, including any passwords that may be sent are all transmitted in clear-text.

Better to use SSH X11 forwarding. This way the entire session is encrypted and nobody can snoop your passwords. The process of using SSH X11 Forwarding goes something like this:

On the server-side (the machine from which you want to forward the display, make sure this line is in your /etc/ssh/sshd_config file:

X11Forwarding yes

If you had to add it, restart the sshd service.

/sbin/service sshd restart

Now, from the client-side (the machine on which you want to display the forwarded X11 application) connect to the server-side machine with the -X flag. Like so:

ssh -X username@remoteserver

Now you should be able to start X applications and have them display on your client machine through an ssh tunnel. If you are like me, however, some Java applications will not display correctly. Instead of popping up a window with the full application in it, I would only see a totally useless blank window. This frustrated me for months until I found this article at kraftek.com that details how to resolve the problem.

It turns out that all you have to do is put this line in the ssh_config file on your client-side:

ForwardX11Trusted yes

After logging out and back into the server-side machine, everything worked perfectly.

Discuss This Article


Got something to say?






Post Tags (user submitted): t (310) - f (19) - sex xll (15) - SSH X11 session (12) - X11 forwarding solaris (10) - ssh xforward (10) - Solaris 9 sshd_config X11 tunneling (8) - SSH X11 forwarding (7) - ssh X11 (7) - x11 forwarding vmware (7) - ssh x11 forwarding solaris (7) - ssh mac display (6) - java x11 forwarding (6) - ForwardX11Trusted putty (6) - putty ForwardX11Trusted (6) - X11 forwarding mac (5) - solaris x11 forwarding (5) - x11 forwarding solaris 9 (5) - ssh_config tunnel (5) - x11 ssh (5) - X11Forwarding solaris (5) - mac ssh x forwarding (5) - ssh display (5) - enable X11 forwarding mac (5) - restart X11 solaris (5) - sshd_config X11 (5) - Solaris 10 sshd_config X11 tunneling (5) - xll sex (5) - forward x11 mac (4) - sshd_config tunnel (4) - forward x11 session (4) - ssh X11 forward (4) - solaris 9 ssh x11 forwarding (4) - X11 tunneling mac (4) - solaris x forwarding (4) - java x11 ssh (4) - java blank window (4) - ssh display empty (4) - X forwarding solaris (4) - solaris ssh DISPLAY (4) - x11 ssh tunnel (4) - enable X11 forwarding solaris 9 (4) - sex.xll (4) - display (3) - mss (3) - forward X11 (3) - java swing blank window (3) - solaris 8 ForwardX11Trusted (3) - ssh x11 mac (3) - mac ssh x11 forwarding (3) - ssh tunnel x11 (3) - ForwardX11Trusted java (3) - RHEL x11 forwarding (3) - ssh display forward (3) - VMWare x11 forwarding (3) - restart X11 server (3) - mac forward x11 ssh (3) - java swing ssh (3) - x11 tunnel ssh mac (3) - rhel5 x forwarding (3) - ForwardX11Trusted Solaris (3) - SSH X11 tunneling (3) - ssh forwarding X11 (3) - enable X11 forwarding in solaris (3) - Solaris 10 ssh x11 (3) - ssh ForwardX11Trusted (3) - forwardx11trusted solaris 10 (3) - restart x11 (3) - forward x11 ssh mac (3) - ssh x forwarding solaris (3) - kraftek com (3) - solaris 10 restart x11 (3) - mac ssh x11 (3) - how to start Xwindows session in Solaris10 (3) - ssh tunnel X11 mac (3) - rhel enable x11 forwarding (3) - enable x-forwarding solaris (3) - java X Forwarding (3) - restart x11 service (3) - x11 forward export display blank screen java (3) - x window java forwarding (3) - enable solaris 9 x forwarding (3) - x forwarding java application (3) - solaris (2) - asterisk gui (2) - java ssh x11 (2) - forward X11 ssh (2) - solaris 9 x11 forwarding (2) - ssh tunnel x11 forwarding (2) - rhel ssh x11 (2) - x11 session forwarding (2) - X11 forwarding solaris 8 (2) - x forwarding solaris 8 (2) - X11 mac solaris (2) - ssh x11 forwarding mac (2) - ssh mac x11 (2) - x11 ssh forwarding (2) - ssh solaris x window (2) - ssh X blank window (2) - rhel5 ssh x forwarding (2) - mac X11 ssh (2) - forward entire X session (2) - ssh X11 forwarding blank (2) - ssh tunnel solaris (2) - forwarding X11 (2) - restart X11 rhel (2) - sshd x11 forward (2) - solaris 10 ssh x forwarding (2) - ssh config forward x11 (2) - vmware fusion ssh (2) - enabling x11 forwarding mac (2) - forward x windows solaris (2) - mac x11 ssh tunnel (2) - ssh tunnel vmware (2) - restart ssh in rhel (2) - restart x11 session (2) - mac ssh DISPLAY (2) - ssh X tunnel forward (2) - X11 tunneling (2) - RHEL5 ssh display (2) - ssh forward x11 (2) - exporting x11 session (2) - vmware X11 ssh (2) - ssh Xll forwarding (2) - ssh x11 forwarding on solaris to mac (2) - mac ssh forwarding (2) - blank screen java x11 (2) - forward x11 solaris (2) - ssh display mac (2) - ssh x forwarding (2) - x session tunneling (2) - x export blank window (2) - mac ssh_config xforward (2) - xforwarding mac (2) - solaris xforwarding (2) - ssh x11 forward session (2) - x11 mac ssh (2) - rhel5 X11 forwarding ssh (2) - forward x11 java (2) - restart ssh solaris 9 (2) - solaris sshd_config restart (2) - forwarding x-windows through ssh tunnels (2) - how to enable x11 on solaris 9 (2) - mac x windows ssh_config sshd_config (2) - SSH X Display Tunnel (2) - X11 forwarding solaris 10 (2) - RHEL 5 X11 forwarding (2) - how to start X11 window server on solaris (2) - ssh x forwarding RHEL4 (2) - sshd_config forwarding (2) -