microsoft / microsoft/vscode-remote-release

"unexpected end of parent stream" on empty or missing "known_hosts"

Open
#11,480 2 comments 1 reaction 1 assignee View on GitHub

@chrmarti is already working on this.

Since Feb 9, 2026.

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

Description

  • VSCode Version: 1.109.0
  • Local OS Version: Win 11 232H2
  • Remote OS Version: Ubuntu 24
  • Remote Extension/Connection Type: Dev Containers/WSL/Remote - Tunnels/VS Code Server: DevContainer
  • Logs:

Steps to Reproduce:

  1. Ensure that on host %userprofile%\.ssh\known_hosts is empty
  2. Ensure that in WSL ~/.ssh/known_hosts is empty
  3. Build a DevContainer
  4. Error message:
[2026-02-09T06:36:15.182Z] Start: Run in container: # Test for /home/user/.ssh/known_hosts and ssh
[2026-02-09T06:36:15.183Z] Start: Run in Host: gpg-connect-agent updatestartuptty /bye
[2026-02-09T06:36:15.185Z] 
[2026-02-09T06:36:15.185Z] 
[2026-02-09T06:36:15.185Z] Stop (3 ms): Run in container: # Test for /home/user/.ssh/known_hosts and ssh
[2026-02-09T06:36:15.185Z] Start: Run in container: # Copy /home/xyz/.ssh/known_hosts to /home/user/.ssh/known_hosts
[2026-02-09T06:36:15.185Z] Stop (2 ms): Run in Host: gpg-connect-agent updatestartuptty /bye
[2026-02-09T06:36:15.187Z] Stop (273 ms): Run in Host: docker exec -i -u root bacbe3c948f50a74fdabf1dabdc49e7a172495fb45e56b8b320bb89722ccaf1b /bin/sh -c echo "New container started. Keep-alive process started." ; export VSCODE_REMOTE_CONTAINERS_SESSION=57525266-1e4c-441b-aa36-833a93fde6b71770618969740 ; /bin/sh
[2026-02-09T06:36:15.187Z] Stop (240 ms): Run in Host: docker exec -i -u user -e VSCODE_REMOTE_CONTAINERS_SESSION=57525266-1e4c-441b-aa36-833a93fde6b71770618969740 bacbe3c948f50a74fdabf1dabdc49e7a172495fb45e56b8b320bb89722ccaf1b /bin/sh
[2026-02-09T06:36:15.187Z] Stop (78 ms): Run in Host: docker exec -i -u root bacbe3c948f50a74fdabf1dabdc49e7a172495fb45e56b8b320bb89722ccaf1b /bin/sh
[2026-02-09T06:36:15.187Z] Stop (11 ms): Run in Host: docker exec -i -u user bacbe3c948f50a74fdabf1dabdc49e7a172495fb45e56b8b320bb89722ccaf1b /bin/sh
[2026-02-09T06:36:15.190Z] unexpected end of parent stream
[2026-02-09T06:36:15.191Z] Keep-alive process ended.
[2026-02-09T06:36:15.191Z] Error reading shell environment.
[2026-02-09T06:36:15.191Z] Shell server failed: Error: unexpected end of parent stream
    at bi.destroy (c:\Users\xyz\.vscode\extensions\ms-vscode-remote.remote-containers-0.442.0\dist\extension\extension.js:12:26563)
    at bi.write (c:\Users\xyz\.vscode\extensions\ms-vscode-remote.remote-containers-0.442.0\dist\extension\extension.js:12:27304)
    at c:\Users\xyz\.vscode\extensions\ms-vscode-remote.remote-containers-0.442.0\dist\extension\extension.js:12:29407
    at c:\Users\xyz\.vscode\extensions\ms-vscode-remote.remote-containers-0.442.0\dist\extension\extension.js:12:14823
    at c:\Users\xyz\.vscode\extensions\ms-vscode-remote.remote-containers-0.442.0\dist\extension\extension.js:12:17466
    at c:\Users\xyz\.vscode\extensions\ms-vscode-remote.remote-containers-0.442.0\dist\extension\extension.js:12:23816
    at r (c:\Users\xyz\.vscode\extensions\ms-vscode-remote.remote-containers-0.442.0\dist\extension\extension.js:12:17414)
    at c:\Users\xyz\.vscode\extensions\ms-vscode-remote.remote-containers-0.442.0\dist\extension\extension.js:12:17459
    at Object.cb (c:\Users\xyz\.vscode\extensions\ms-vscode-remote.remote-containers-0.442.0\dist\extension\extension.js:12:23927)
    at l (c:\Users\xyz\.vscode\extensions\ms-vscode-remote.remote-containers-0.442.0\dist\extension\extension.js:12:21923)
    at u (c:\Users\xyz\.vscode\extensions\ms-vscode-remote.remote-containers-0.442.0\dist\extension\extension.js:12:22185)
    at c:\Users\xyz\.vscode\extensions\ms-vscode-remote.remote-containers-0.442.0\dist\extension\extension.js:12:22268
    at s (c:\Users\xyz\.vscode\extensions\ms-vscode-remote.remote-containers-0.442.0\dist\extension\extension.js:15:5371)
    at Socket.<anonymous> (c:\Users\xyz\.vscode\extensions\ms-vscode-remote.remote-containers-0.442.0\dist\extension\extension.js:15:5472)
    at Socket.emit (node:events:519:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5)
    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)
  1. Adapt ~/.ssh/known_hosts so that it is not empty: echo "# Dummy Entry" > ~/.ssh/known_hosts
  2. Re-Build container -> no error

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.