microsoft / microsoft/vscode-remote-release
remote-ssh corrupts .ssh/config if the lines have comments
Nobody has claimed this yet.
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 469
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Type: Bug
entries with comments on the smae line have spaces removed before the #
So this:
Host n1dch-595770.home.daveho.net
HostName n1dch-595770.home.daveho.ne t# IP address or domain name of the remote server
User daveho # Your username on the remote machine
Port 22 # Optional if not default
IdentityFile ~/.ssh/id_rsa # Path to your private key
becomes this:
Host n1dch-595770.home.daveho.net
HostName n1dch-595770.home.daveho.net# IP address or domain name of the remote server
User daveho# Your username on the remote machine
Port 22# Optional if not default
IdentityFile ~/.ssh/id_rsa# Path to your private key
to reproduce have a .ssh/config file with comments and do Remote-SSH add new ssh host.
Extension version: 0.120.0
VS Code version: Code 1.106.3 (bf9252a2fb45be6893dd8870c0bf37e2e1766d61, 2025-11-25T22:28:18.024Z)
OS version: Windows_NT x64 10.0.26220
Modes:
System Info
| Item | Value |
|---|---|
| CPUs | 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 2419) |
| GPU Status | 2d_canvas: enabled direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off trees_in_viz: disabled_off video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 7.85GB (0.98GB free) |
| Process Argv | .editorcfg --crash-reporter-id 0639ba0e-09e4-4497-b143-58c18b673d60 |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
aj953862:31281341
4f60g487:31327383
nes-set-on:31340697
6abeh943:31336334
cloudbuttont:31379625
todos-1:31405332
qwen_all_req:31402696
3efgi100_wstrepl:31403338
trigger-command-fix:31379601
auto_model_enabled:31385282
use-responses-api:31390855
defaultusage:31403421
je187915:31401254
afag3459:31428711
ec5jj548:31422691
copilot-nes-oct-t:31418199
terminalsuggestenabled:31426255
cmp-ext-treat:31426748
cp_cls_c_966_ss:31426491
defaultvisibility:31426295
expandedtokens:31427242
c0683394:31419495
g0h3h215:31426582
478ah919:31426797
ge8j1254_inline_auto_hint_haiku:31427726
fa76a614:31426880
38bie571_auto:31426784
cp_jb_t_lixleitest:31428973
h0hdh950:31428394
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the problem with a .ssh/config containing inline comments, then use the Remote-SSH “add new ssh host” flow to observe the rewritten file. No source file or test is named in the report; done means preserving the spaces before inline # comments while adding an SSH host.
Written by the indexing model from the issue text.
Assessment
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100