win-ssh-x11-fwd
This guide explains how to do X11 Forwarding with OpenSSH on Windows 10 using VcXsrv.
Note: before starting, make sure that
X11Forwardingis enabled andxauthis installed on the SSH server you want to connect to.
First of all, you need to install VcXsrv. Example with the Chocolatey package manager:
| Bash | |
|---|---|
Note: the
sudobinary here is provided by gsudo on Windows.
Then start the application (it should be XLaunch in the applications menu). After a quick configuration wizard, it will minimize to the Windows tray bar.
Now you can connect to an SSH server with X11 Forwarding. Open a Git Bash window and type the following (adjusting the server connection parameters):
| Bash | |
|---|---|
Then, in the remote shell: