Skip to content

Enhancing SSH Connection Compatibility with Cursor #225

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

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

RyousukeUchino
Copy link
Contributor

Previous MR #221

Overview

I have been a dedicated user of both Coder and Cursor. However, I've encountered persistent issues when attempting to connect to the Coder workspace via Cursor (Cursor). These issues range from receiving 404 errors to SSH connection failures, preventing any access to the workspace. The root cause of these problems lies in the necessity to use Cursor's built-in Open Remote - SSH extension, anysphere.open-remote-ssh, for successful SSH connections.

Changes Made

I've confirmed that users utilizing Cursor can simply specify anysphere.open-remote-ssh explicitly within the Coder plugin without any issues coexisting with ms-vscode-remote.remote-ssh. Therefore, I've made a straightforward update to check for the existence of anysphere.open-remote-ssh and use it preferentially if available. This eliminates the need to remove any dependencies.

With this MR, I'm hopeful for a seamless integration between Cursor and Coder, which I personally believe is the best combination.

Copy link
Member

@kylecarbs kylecarbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome description, thanks for the contribution!

I'd rather we only get the other extension if the official remote extension isn't found.

@code-asher code-asher merged commit 10093ba into coder:main Mar 12, 2024
@code-asher
Copy link
Member

Released in 0.1.35!

@RyousukeUchino
Copy link
Contributor Author

@code-asher @kylecarbs
The update has been applied, and it is working perfectly. Thank you for accepting the pull request! 😎

@stobias123
Copy link

stobias123 commented Mar 25, 2024

is there configuration required to make this work? I'm still getting 404 errors when trying to open a workspace with cursor.

[13:27:02.724] Resolver error: Error: Failed to download VS Code Server (Server returned 404)
[13:27:02.431] > wget download failed
> https://update.code.visualstudio.com/commit:502aa640fa223830082ace6c194b46b55e390fa0/server-linux-x64/stable: 2024-03-25 20:27:02 ERROR 404: Not Found.

@kylecarbs
Copy link
Member

Seems like something might be wrong with Cursor's Remote SSH here.

I'd be surprised if it's supposed to download Microsoft's official server.

@code-asher
Copy link
Member

code-asher commented Mar 27, 2024

Do you have the open remote SSH extension installed? Maybe it is using the official one? You should only have the open remote one installed, and I think you might have to uninstall the official one if it exists.

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

Successfully merging this pull request may close these issues.

4 participants