Configure PuTTY as below:
To test your X11 setup, after login, type command
xeyes and press
Close the xeyes application by “Ctrl + c” from the terminal or click the close button on the up-right corner of the graphical window.
Check the OS version on your Mac, if it’s below 10.8., you can simply type
ssh -Y username@hostname in your terminal to login.
If your OS version is newer than 10.8, please do the following:
Note that the screenshots given here use XQuartz 2.8.5. Different versions may have different prompts.
ssh -Y username@hostnamein your terminal to login.
4. Close the xeyes application by “Control + c” from the terminal or click the close button on the up-left corner of the graphical window.
ssh -Y username@hostname” in your terminal to login.
If you are using OS X or Linux, you may need to re-enable indirect GLX (IGLX) in order for the GUI application to run properly. IGLX was disabled for security reasons starting with X.org version 1.17 (Linux) and XQuartz version 2.7.9 (OS X). More information about this change is available at this link.
To re-enable IGLX, use the follwing instructions:
Open a terminal on your Mac, and run the following command:
$ sudo defaults write org.macosforge.xquartz.X11 enable_iglx -bool true
Log out or restart your Mac for the changes to take effect.
You will need to create a small Xorg configuration file. This requires
root access, so
run commands with care.
Be extremely cautious running commands as
root. You can permanently make your system unusable.
Create a file at
/etc/X11/xorg.conf.d/iglx.conf with the following contents:
Section "ServerFlags" Option "IndirectGLX" "on" EndSection
Restart X11 by logging out, or by rebooting your machine.