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

product.json changes for Remote SSH #328

Merged
merged 2 commits into from
May 20, 2020

Conversation

zhaofengli
Copy link
Contributor

@zhaofengli zhaofengli commented Feb 14, 2020

The two commits enable the ms-vscode-remote.remote-ssh API and set the serverDataFolderName key[1] in product.json, required for Microsoft's Remote SSH extension to function. Note that the server will try to validate the "client handshake," which you will have to patch manually at your own risk (mentioned in their FAQ). This PR is what we can do from the editor side without violating any license.

Tested to work on x86-64, with Remote SSH connected to a x86-64 host.

[1] If serverDataFolderName is not set, the extension will always select the insider version of the server binary, causing a version mismatch when connecting.

@appelgriebsch
Copy link

Any updates on this? Would love to see this capability added to vscodium....

@appelgriebsch
Copy link

After adding the entries to product.json I was able to initiate the SSH connection to a remote system, but the handshake with the vscode-server failed...

image

@zhaofengli
Copy link
Contributor Author

@appelgriebsch That's the second part (the "client handshake") that you will have to patch out from the server. Grep for Unauthorized client refused in ~/.vscode-server-oss and you will see how (you might want to run the code through a prettifier first).

@stripedpajamas
Copy link
Member

Awesome, thanks for the explanation and the PR @zhaofengli 👍

@stripedpajamas stripedpajamas merged commit 8111747 into VSCodium:master May 20, 2020
@ayykamp
Copy link

ayykamp commented Dec 2, 2020

@appelgriebsch That's the second part (the "client handshake") that you will have to patch out from the server. Grep for Unauthorized client refused in ~/.vscode-server-oss and you will see how (you might want to run the code through a prettifier first).

Could you explain exactly how to do this? I tried modifying remoteExtensionHostAgent.jsbut it did not work :(

@zhaofengli
Copy link
Contributor Author

@ayykamp You need to kill the server processes after changing the code, then reconnect from VSCodium.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants