PowerShell window opens when using ProxyCommand with Cursor's Remote SSH

:lady_beetle: Bug Description:
Remote SSH via Cursor behaves differently than in VS Code. When connecting to my Linux server using a ProxyCommand, a PowerShell window visibly opens during the connection. This window doesn’t appear at all in VS Code. In Cursor, even if I close it, it reopens. The fact that it opens at all is already disruptive.

:counterclockwise_arrows_button: Steps to Reproduce:

  1. Use the following SSH config in C:\Users\moham\.ssh\config on Windows 11:
    Host ec2-dev  
      IdentityFile C:\Users\moham\.ssh\ec2-dev  
      User aziz  
      HostName i-0f2820cd67096■■■  
      ProxyCommand powershell -ExecutionPolicy Bypass -File C:\Users\moham\.ssh\ssm-proxy.ps1 -InstanceId %h -PortNumber %p
    
  2. Connect to ec2-dev via Cursor Remote SSH.
  3. A PowerShell window opens (which does not happen in VS Code).
  4. Closing it causes it to reopen automatically.

:label: Cursor Version:
Version: 1.0.0 (user setup)
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:44:25.253Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

:label: Cursor - Remote SSH Extension Info:
Name: Remote - SSH
Id: anysphere.remote-ssh
Description: Open any folder on a remote machine using SSH and take advantage of Cursor’s full feature set.
Version: 1.0.4
Publisher: Anysphere
VS Marketplace Link: Cursor - The AI Code Editor

:label: VSCode - Remote SSH Extension Info:
Name: Remote - SSH
Id: ms-vscode-remote.remote-ssh
Description: Open any folder on a remote machine using SSH and take advantage of VS Code’s full feature set.
Version: 0.120.0
Publisher: Microsoft
VS Marketplace Link: Remote - SSH - Visual Studio Marketplace

:camera: Attachments:

For reference, the issue appeared here in a previous version for VS Code’s Remote SSH.

Hi @MedAzizTousli, thank you for sharing this detailed bug report. We fixed this issue in 1.0.5 of the Anysphere Remote SSH extension. Could you try upgrading to that? Thanks!