microsoft / microsoft/vscode-remote-release

[Remote-SSH Bug]: First connection failing 50% of the time, and then retry works

Open
#10,513 9 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Is there an existing issue for this bug?
  • I have searched the existing issues
Required Troubleshooting Steps
  • I have followed these troubleshooting steps
  • I have tried both values of the remote.SSH.useLocalServer setting (more info here)
Connect Locally

It connects successfully

->

There appears to be some kind of timing issue when connecting to my remote SSH. Upon initial connect I get a failure about half the time:

broken.log

Then when I click retry, it connects fine:

working.log

Expected Behavior

No response

Steps To Reproduce

No response

Remote-SSH Log

See attached.

Anything else?

No response

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 by comparing the attached broken.log and working.log, then test both values of remote.SSH.useLocalServer as described in the troubleshooting link. Trace the initial Remote-SSH connection path for the timing difference between failure and retry. Done means the reported first-connection failure is understood and no longer requires a retry.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
devtools, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.