Bug in SSH Config Parsing: Inline Comments Misinterpreted as Values

Hi, thanks for reporting an issue with Cursor.

Before you report this, we’d appreciate if you can search this forum to see if this issue has already been reported.

If you have done so, please check this box.
on

Describe the Bug

If the SSH config file contains an inline comment (e.g., User xyz # abc), Cursor incorrectly interprets the value of User as xyz # abc instead of properly ignoring the inline comment. I encountered this issue, removed the inline comment, and confirmed that it worked correctly afterward, which highlights the presence of this bug.

Steps to Reproduce

Start by using the Remote SSH extension with an inline comment as described above. Observe how Cursor reconstructs the User value in the top-center prompt. Then, remove the inline comment and retry to compare the behavior.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 0.44.9
VSCode Version: 1.93.1
Commit: 316e524257c2ea23b755332b0a72c50cf23e1b00
Date: 2024-12-26T21:58:59.149Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin x64 24.2.0

Additional Information

I believe the information provided is adequate.

Does this stop you from using Cursor

No - Cursor works, but with this issue