Skip to content

Instantly share code, notes, and snippets.

@kourbou
Last active August 4, 2020 21:47
Show Gist options
  • Select an option

  • Save kourbou/58c1886bc1fc8789e2e2f75acbd9266e to your computer and use it in GitHub Desktop.

Select an option

Save kourbou/58c1886bc1fc8789e2e2f75acbd9266e to your computer and use it in GitHub Desktop.
@ECHO OFF
start /B "Xming" "C:\Program Files (x86)\Xming\Xming.exe" :0 -multiwindow -clipboard -dpi 108
set DISPLAY=127.0.0.1:0
echo Started X server (Xming).
ssh my-host
if errorlevel 1 pause
Host my-host
HostName my-host
User username
IdentityFile ~/.ssh/id_rsa
Compression yes
ForwardX11 yes
ForwardX11Trusted yes
SendEnv DISPLAY yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment