Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

remoteX11.SSH.host&port not working #27

Closed
WXZhao7 opened this issue Aug 18, 2020 · 3 comments
Closed

remoteX11.SSH.host&port not working #27

WXZhao7 opened this issue Aug 18, 2020 · 3 comments

Comments

@WXZhao7
Copy link

WXZhao7 commented Aug 18, 2020

Today I find that remoteX11.SSH.host and remoteX11.SSH.port are invalid for remote X11. Here I show two tests.

1. The linux(ubuntu) is in the public network and Windows laptop shared network by mobile phone.

The settings of ssh and remote X11: (Here the Remote X11 host and port are invalid)

image

Then reload the window:

image

The output of Remote X11 and Remote X11(SSH): (The extention correct the host and port automatically)

image

Even the DISPLAY number is different, it does work.

image

2. The linux(ubuntu) is in the local network, but it's 22 port 22 is forwarded to 2222 by the router and the router is in the public network. So I can using the PUTTY or Remote SSH in the Windows to connect the linux.

The settings of ssh and remote X11: (Here the Remote X11 host and port are random)

image

The output of Remote X11 and Remote X11(SSH): (The extention find the local address of the linux automatically and the the Remote X11 host and port are invalid)

image

The putty work normally.

image

I think there may be some strange problems here.😅

@joelspadin
Copy link
Owner

Try setting the remoteX11.SSH.host and remoteX11.SSH.port settings in your remote settings instead of your user settings. From the Settings page, use the "Remote" tab:

image

I'm not sure why it would be ignoring those settings for you, as I think VS Code should load user settings too, but I intended for those settings to be set on the remote machine so you can set a different host and port for each machine.

@WXZhao7
Copy link
Author

WXZhao7 commented Aug 21, 2020

Try setting the remoteX11.SSH.host and remoteX11.SSH.port settings in your remote settings instead of your user settings. From the Settings page, use the "Remote" tab:

image

I'm not sure why it would be ignoring those settings for you, as I think VS Code should load user settings too, but I intended for those settings to be set on the remote machine so you can set a different host and port for each machine.

Thanks! Now it do work~

@joelspadin
Copy link
Owner

Great! I'll see if I can find some way to force you to set those in the remote settings.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants