Remote-SSH 0.124.0 keeps asking for remote platform on every connection

Open
#11,757 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
vscode

Research direction

Reproduce the connection using VS Code 1.129.1, Remote-SSH 0.124.0, the shown settings.json entry, and SSH config, then compare it with Remote-SSH 0.120.x. Start with the Remote-SSH: Show Log output and the remote.SSH.remotePlatform setting; done means the saved Linux platform is reused on every connection without prompting.

Written by the indexing model from the issue text.

Description

ssh
Is there an existing issue for this bug?
  • I have searched the existing open issues and found none that apply.
  • If I find any issue of interest that is related or closed, I will included a link to it in this issue.
Required Troubleshooting Steps
  • I have read and performed the troubleshooting steps
  • I have tried both values of the remote.SSH.useLocalServer setting
  • My issue was not covered in the Tips and Tricks linked from the Troubleshooting Wiki.
  • I will include a complete copy of my Remote - SSH logs by running Remote-SSH: Show Log in the command palette or from View > Output in the menu bar
[Optional] Diagnose with Copilot

I did not ask the @remote-ssh participant for help

In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?

I did not try step 2 of the troubleshooting steps

Remote-SSH Log

Environment:

  • VS Code 1.129.1
  • Remote - SSH 0.124.0
  • Windows 10 x64
  • Ubuntu Server 22.04

Issue:
Every time I connect to the same SSH host, Remote-SSH asks me to select the remote platform (Linux / Windows / macOS), even though the platform has already been saved.

My settings.json contains:

{
"remote.SSH.remotePlatform": {
"ubuntu-sv-nas": "linux"
}
}

SSH config:

Host ubuntu-sv-nas
HostName 192.168.1.62
User root
IdentityFile C:\Users\R9.ssh\id_rsa
IdentitiesOnly yes

The issue happens on every connection.

Downgrading Remote-SSH to 0.120.x completely fixes the issue.

Expected Behavior

fix

Actual Behavior

reinstall the old version

Steps To Reproduce

...

Anything else?

No response

Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

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.

More from microsoft/vscode-remote-release

All issues in microsoft/vscode-remote-release

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.