posit-dev / posit-dev/positron

remote SSH: respect `VSCODE_SERVER_*` env vars

Open
#8,250 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: remote host enhancement support
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 11h
Merged PRs (30d)
206

Description

As I mentioned in https://github.com/posit-dev/positron/discussions/8234#discussioncomment-13554296, our open-remote-ssh extension does not seem to be providing certain environment variables to the server script. It would be helpful to pass along VSCODE_SERVER_* env vars, which could power use cases like below.

Discussed in https://github.com/posit-dev/positron/discussions/8234

Originally posted by KGZaker June 22, 2025
First, thank you so much for maintaining Positron—it’s been a huge help!

Background:
I’m trying to use Positron’s SSH feature to connect to an HPC cluster running Ubuntu 18.04, but out of the box neither Positron nor VS Code’s Remote–SSH work on that older distro. Following the instructions here: can-i-run-vs-code-server-on-older-linux-distributions, I configured a sysroot and patchelf. After that, I can successfully connect to the Ubuntu 18.04 host from the latest VS Code via the built-in Remote–SSH extension. However, Positron still fails to connect via SSH.

Expected Behavior:
Maybe Positron can leverage the same patched server approach (or an equivalent workaround) to establish an SSH‐Remote session on Ubuntu 18.04 HPC hosts.

Questions:
Are there alternative methods you’d recommend for getting Positron’s SSH support working on older Linux distributions?

Any guidance would be much appreciated! Thank you again for your work on Positron.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the open-remote-ssh extension and its server script launch path, then review the linked discussion for the expected older-Linux SSH use case. Trace how environment variables are passed to the server script; done means the relevant VSCODE_SERVER_* variables reach the remote server session.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devops, infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.