Skip to content

bug: VSC Desktop connection ressource #564

@boesr

Description

@boesr

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I am trying to connect to my workspace using the VSC Desktop application (Mac). I see my workspaces through the coder extension and the following ssh config is generated:

# --- START CODER VSCODE my.domain.com ---
Host coder-vscode.my.domain.com--*
  ConnectTimeout 0
  LogLevel ERROR
  ProxyCommand "/Users/myuser/Library/Application Support/Code/User/globalStorage/coder.coder-remote/my.domain.com/bin/coder-darwin-arm64" --global-config "/Users/myuser/Library/Application Support/Code/User/globalStorage/coder.coder-remote/my.domain.com" ssh --stdio --usage-app=vscode --disable-autostart --network-info-dir "/Users/myuser/Library/Application Support/Code/User/globalStorage/coder.coder-remote/net" --ssh-host-prefix coder-vscode.my.domain.com--  %h
  SetEnv  CODER_SSH_SESSION_TYPE=vscode
  StrictHostKeyChecking no
  UserKnownHostsFile /dev/null
# --- END CODER VSCODE my.domain.com ---

The above config tries to access /api/v2/users/me/workspace/myuser--24-hours?include_deleted=false (24-hours being my workspace).

To debug, I replaced "%h" in the ssh config with "myuser--24-hours". This resulted in access to the following URL: /api/v2/users/myuser/workspace/24-hours?include_deleted=false. This will work, but of course the config will be overwritten on the next attempt.

Relevant Log Output

Exec server for ssh-remote+coder-vscode.my.domain.com--myuser--24-hours failed: Error

Expected Behavior

Opening the Workspace by clicking "VS Code Desktop" in the UI.

Steps to Reproduce

  1. Create a workspace "24-hours"
  2. Wait till it's ready
  3. Click "VS Code Desktop"

Environment

  • Host OS: Rocky 9.6 (where Coder runs)
  • Coder version: v2.24.2+0ead64f
  • Workspace OS: Ubuntu 24.04.2
  • Client OS running VSC: macOS 15.5 (24F74)

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy