Forwarding X on Linux/Unix Machines

Like ssh.com says, you need to do the following things to successfully forward an X-Server to your client. [ol]

  • Servers X-Config needs to have:

    AllowX11Forwarding              yes

  • Clients Set in [em]/etc/ssh2/sshd2_config:[/em]

    ForwardX11 yes

  • Now connect via following command:

  • After that, use declare command to set the display to your servers one:

    declare -X DISPLAY=""

    (with your IP)

  • [/ol] Thats it.

    In articles, linux, open source, ssh, x window system by
    @ 03 Jul 2007, Comments at Reddit & Hackernews