• 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.

    This entry was posted on Monday, July 16th, 2007 at 12:00 pm and is filed under Data and Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 0 Comments

    Take a look at some of the responses we've had to this article.

  • Post a Comment

    Let us know what you thought.

  • Name:

    Email (required):

    Website:

    Message:

Visitors have tagged this post: t (310) - sex xll (40) - xll sex (24) - f (19) - SSH X11 session (14) - ForwardX11Trusted putty (13) - sshd_config X11 (13) - solaris x11 forwarding (11) - X11 forwarding solaris (10) - ssh xforward (10) - putty ForwardX11Trusted (10) - sshd_config tunnel (9) - Solaris 9 sshd_config X11 tunneling (9) - java x11 forwarding (9) - display (8) - solaris 10 ssh x11 problem (8) - SSH X11 forwarding (7) - ssh X11 (7) - ssh mac display (7) - x11 forwarding vmware (7) - ssh_config tunnel (7) - mac ssh DISPLAY (7) - ssh x11 forwarding solaris (7) - java blank window (7) - sex.xll (7) - ssh tunnel x11 (6) - mac ssh x forwarding (6) - ssh display (6) - restart X11 solaris (6) - Solaris 10 sshd_config X11 tunneling (6) - enable X11 forwarding solaris 9 (6) - X11 forwarding mac (5) - x11 forwarding solaris 9 (5) - solaris 9 ssh x11 forwarding (5) - solaris x forwarding (5) - solaris 10 ssh x forwarding (5) - x11 ssh (5) - X11Forwarding solaris (5) - ssh display mac (5) - ForwardX11Trusted Solaris (5) - X forwarding solaris (5) - enable X11 forwarding mac (5) - mac ssh x11 (5) - how to disable x forwarding in solaris 10 (5) - forward x11 mac (4) - restart ssh RHEL (4) - solaris 9 x11 forwarding (4) - forward x11 session (4) - ssh X11 forward (4) - X11 mac solaris (4) - x11 ssh forwarding (4) - X11 tunneling mac (4) - ssh display forward (4) - restart X11 server (4) - java swing ssh (4) - java x11 ssh (4) - vmware X11 ssh (4) - ssh display empty (4) - Solaris 10 ssh x11 (4) - ssh ForwardX11Trusted (4) - solaris ssh DISPLAY (4) - RHEL 5 X11 forwarding (4) - rhel5 x11 forwarding (4) - forwardx11trusted solaris 10 (4) - solaris 10 restart x11 (4) - x11 ssh tunnel (4) - ssh x11 tunnel (4) - java X Forwarding (4) - ssh X11 solaris10 (4) - mss (3) - forward X11 (3) - java swing blank window (3) - forward display mac (3) - ssh with X11 (3) - solaris 8 ForwardX11Trusted (3) - x11 session forwarding (3) - ssh x11 mac (3) - X11 blank window (3) - ssh and X11 (3) - forward entire X session (3) - mac ssh x11 forwarding (3) - ForwardX11Trusted java (3) - RHEL x11 forwarding (3) - ssh tunnel solaris (3) - forwarding X11 (3) - VMWare x11 forwarding (3) - mac forward x11 ssh (3) - x11 tunnel ssh mac (3) - rhel5 x forwarding (3) - ssh forward x11 (3) - SSH X11 tunneling (3) - ssh forwarding X11 (3) - enable X11 forwarding in solaris (3) - restart ssh solaris 9 (3) - ssh -X solaris 9 (3) - X11 forwarding solaris 10 (3) - ssh x11 forwardx11trusted (3) - export x11 session (3) - restart x11 (3) - forward x11 ssh mac (3) - ssh x forwarding solaris (3) - kraftek com (3) - how to start Xwindows session in Solaris10 (3) - enable x11 forwarding on solaris 9 (3) - ssh tunnel X11 mac (3) - rhel enable x11 forwarding (3) - solaris 10 ForwardX11Trusted (3) - solaris 10 ssh display (3) - enable x-forwarding solaris (3) - X11 forwarding empty DISPLAY (3) - ssh -Y mac x11 (3) - ssh X11 forwarding solaris 10 (3) - restart x11 service (3) - x11 forward export display blank screen java (3) - enable x11 forwarding solaris 10 (3) - x window java forwarding (3) - java ssh X forwarding (3) - enable solaris 9 x forwarding (3) - x forwarding java application (3) - what is X11 forwarding in SUN Solaris (3) - enable x11 service solaris 10 (3) - java 6 ssh (3) - solaris x11 tunneling (3) - x11 service solaris 10 (3) - ssh x11 forwarding java blank (3) - java swing partition layout (3) - ssh forward x solaris (3) - forwarding X11 Sun service (3) - solaris ssh enable xwindow (3) - solaris (2) - asterisk gui (2) - java ssh x11 (2) - forward X11 ssh (2) - how to forward x11 session (2) - ssh tunnel x11 forwarding (2) - rhel ssh x11 (2) - rhel ssh x forwarding (2) - tunnel ssh x11 forward (2) - X11 forwarding solaris 8 (2) - x forwarding solaris 8 (2) - ssh x11 forwarding mac (2) - ssh mac x11 (2) - ssh solaris x window (2) - ssh X blank window (2) - rhel5 ssh x forwarding (2) - mac X11 ssh (2) - ssh X11 forwarding blank (2) - ssh forward display (2) - restart X11 rhel (2) - sshd x11 forward (2) -