Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ForwardX11 yes not work #4981

Closed
denissanga opened this issue Apr 29, 2021 · 2 comments
Closed

ForwardX11 yes not work #4981

denissanga opened this issue Apr 29, 2021 · 2 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s) ssh Issue in vscode-remote SSH

Comments

@denissanga
Copy link

Hi all, I'm trying to plot on local pc the screen running on a server but seems that after connection the X11 Forwarding not work giving me the following error: Error in GXSTRT: Unable to connect to X server
Instead, if I connect to server using putty, with Enable X11 forwarding and setting the X11 authentication protocol: MIT-Magic-Console-1, I can see on my local pc the remote screen.
I posted the configuration in config
Host 192.168.1.10
HostName 192.168.1.10
User root
Port 22
IdentityFile C:/Users/.ssh/id_rsa
ForwardX11 yes

thank you very much
Best Regards

@github-actions github-actions bot added the ssh Issue in vscode-remote SSH label Apr 29, 2021
@roblourens
Copy link
Member

It seems like on windows there might be more setup needed than what the extension currently does, which is just forwarding the DISPLAY variable. I don't know enough to debug this, but there is some discussion in #4600

@roblourens roblourens added the *duplicate Issue identified as a duplicate of another issue(s) label May 5, 2021
@denissanga
Copy link
Author

Thank you for your answer but following all suggestions it still not work:
in details I used vscode with WSL terminal and I open ssh machine with:

Host 192.168.1.10
HostName 192.168.1.10
User root
Port 22
IdentityFile C:/Users/.ssh/id_rsa
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes

On remote machine (linux centos) I added in bashrc the line export DISPLAY=localhost:0.0
In the local machine (win 10) I installed xming too and I opened it.

after connection, if I run "grads" I obtain:

"GX Package Initialization: Size = 11 8.5
Error in GXSTRT: Unable to connect to X server"

thank you very much
best regards

@github-actions github-actions bot locked and limited conversation to collaborators Jun 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

2 participants