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

  • Leave a Reply

    Let us know what you thought.

  • Name (required):

    Email (required):

    Website:

    Message:

Visitors have tagged this post: t (310) - sex xll (193) - xll sex (78) - sexxll (55) - sshd_config X11 (27) - www.sexxll (27) - ForwardX11Trusted putty (25) - SSH X11 session (22) - ssh X11 (19) - f (19) - putty ForwardX11Trusted (19) - mac ssh DISPLAY (18) - java x11 forwarding (17) - java blank window (15) - ssh display forwarding (14) - ssh mac display (13) - sshd_config tunnel (12) - solaris x11 forwarding (12) - X11 forwarding solaris (12) - sex.xll (12) - ssh xforward (11) - ssh tunnel x11 (11) - Solaris 9 sshd_config X11 tunneling (11) - ssh_config tunnel (11) - display (10) - java swing ssh (10) - enable X11 forwarding mac (10) - enable x11 forwarding solaris (10) - enable X11 forwarding solaris 9 (10) - www.xll sex.com (10) - ssh x11 tunnel (9) - X11 forwarding RHEL5 (9) - sshd_config forwardx11trusted (9) - WWW,SEXXLL (9) - solaris 9 ssh x11 forwarding (8) - ssh and X11 (8) - ssh display forward (8) - ForwardX11Trusted Solaris (8) - ssh x11 forwarding solaris (8) - rhel5 x11 forwarding (8) - solaris 10 ssh x11 problem (8) - java X Forwarding (8) - SSH X11 forwarding (7) - X11 forwarding mac (7) - forward x11 session (7) - x11 forwarding vmware (7) - rhel5 x forwarding (7) - SSH X11 tunneling (7) - enable X11 forwarding in solaris (7) - Solaris 10 ssh x11 (7) - restart X11 solaris (7) - x11 ssh tunnel (7) - Solaris 10 sshd_config X11 tunneling (7) - ssh export x11 (7) - enable x forwarding solaris (7) - forward x11 mac (6) - X11 blank window (6) - java x11 forward (6) - ssh forward display (6) - forwarding X11 (6) - solaris 10 ssh x forwarding (6) - ssh forward x11 (6) - X11Forwarding solaris (6) - ssh display mac (6) - ssh forwarding X11 (6) - mac ssh x forwarding (6) - ssh display (6) - mac ssh x11 (6) - enable x11 forwarding on solaris 9 (6) - forwarding (6) - solaris x11 tunneling (6) - export x11 (6) - restart ssh RHEL (5) - solaris 9 x11 forwarding (5) - X11 mac solaris (5) - x11 forwarding solaris 9 (5) - x11 ssh forwarding (5) - solaris x forwarding (5) - java x11 ssh (5) - x11 ssh (5) - ssh ForwardX11Trusted (5) - X forwarding solaris (5) - X11 forwarding solaris 10 (5) - Solaris 10 X11 ssh (5) - solaris x forward (5) - forwardx11trusted solaris 10 (5) - solaris 10 ForwardX11Trusted (5) - x forwarding java (5) - RHEL5 ssh X11 Forwarding (5) - solaris 10 sshd x11 (5) - java ssh X forwarding (5) - solaris enable x11 forwarding (5) - how to disable x forwarding in solaris 10 (5) - export x11 ssh (5) - ssh x11 java (5) - x11 session forwarding (4) - ssh x11 mac (4) - ssh X11 forward (4) - X11 tunneling mac (4) - ForwardX11Trusted java (4) - restart X11 server (4) - solaris sshd_config tunnel (4) - vmware X11 ssh (4) - solaris Forwardx11trusted (4) - java x11 (4) - ssh display empty (4) - mac x11 blank (4) - solaris 10 sshd_config (4) - ssh x session (4) - solaris ssh DISPLAY (4) - RHEL 5 X11 forwarding (4) - export x11 session (4) - solaris 10 restart x11 (4) - enable x11 forwarding on a mac (4) - rhel5 ssh X11 (4) - ssh X11 forwarding solaris 10 (4) - X11 solaris 10 (4) - forward x session (4) - x forwarding java application (4) - ssh X11 export (4) - xll.sex (4) - ssh x11 forwarding java (4) - ssh x11 forwarding java blank (4) - ssh X11 solaris10 (4) - ssh X forwarding mac (4) - Java Apps ssh X11 forwarding problem (4) - solaris 8 ssh X11 Forwarding (4) - www.sex.xll (4) - ssh x forwarding rhel5 problem (4) - forwardx11trusted (4) - xll sex 18 (4) - java x forwarding blank (4) - mss (3) - forward X11 (3) - java swing blank window (3) - forward X11 ssh (3) - forward display mac (3) - ssh with X11 (3) - solaris 8 ForwardX11Trusted (3) - ssh mac forward (3) - RHEL5 X11 Forward (3) - forward entire X session (3) - mac ssh x11 forwarding (3) - RHEL x11 forwarding (3) - ssh tunnel solaris (3) - forward x windows solaris (3) - VMWare x11 forwarding (3) - mac forward x11 ssh (3) - restart ssh in rhel (3) - sshd_config Solaris 9 (3) -