How to use X11 forwarding with PuTTY

Solution 1:

You need a X server on your windows workstation. A couple popular options include:

  • vcxsrv
  • Xming (non-free)
  • X410 (non-free)

You need your SSH server to have the X11Forwarding yes set in the sshd_config. It also needs at least the xauth binary/package, but you may want to install your distrobutions version of X11 base clients.

In putty all you should have to do check the Enable X11 forewarding box under Connections\SSH\X11 in your putty connection.

putty x11 settings

Putty documentation for X11 forwarding

  • http://the.earth.li/~sgtatham/putty/0.63/htmldoc/Chapter3.html#using-x-forwarding
  • http://the.earth.li/~sgtatham/putty/0.63/htmldoc/Chapter4.html#config-ssh-x11

Man pages for sshd/sshd_config

  • https://www.freebsd.org/cgi/man.cgi?sshd(8)
  • https://www.freebsd.org/cgi/man.cgi?sshd_config(5)