microsoft / microsoft/vscode

SSH session fails to connect with "uname is not recognized as a name or cmdlet" when connecting to Windows 11 host

Open
#327,469 1 comment 2 reactions 0 assignees View on GitHub
agents-window bug
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

### Description

I am trying to connect over SSH to a remote Windows PC to host my agent sesison. The tunnel successfully connects but when Agents tries to run commands, it immediately chokes on "uname":

Failed to connect via SSH to meron-1: Error: SSH command failed (exit 1): uname -s
stderr: uname: The term 'uname' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Both client and server are Windows 11 machines, latest PowerShell 7 installed, SSH tunnel otherwise fully functional and remote host is successfully using GitHub CLI.

### Issue Details

Item|Value
---|---
Issue Category|Bug
Target|Agents Window
VS Code Version|Code - Insiders 1.131.0-insider (b9ebf999d312fa4a308b624eef68731c6057459a, 2026-07-24T16:39:12Z)
OS Version|Windows_NT x64 10.0.26310

System Info

Item|Value
---|---
VS Code Version|Code - Insiders 1.131.0-insider (b9ebf999d312fa4a308b624eef68731c6057459a, 2026-07-24T16:39:12Z)
OS Version|Windows_NT x64 10.0.26310
CPUs|Intel(R) Core(TM) Ultra 7 165U (14 x 2688)
GPU Status|2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0x7d45 [Intel(R) Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.8860 *ACTIVE*
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.28033
Machine model name:
Machine model version:
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
webgl: enabled
webgpu: enabled
webnn: disabled_off
Load (avg)|
Memory (System)|63.58GB (33.33GB free)
Process Argv|-n --crash-reporter-id aa5890ad-026e-47fe-9936-1766ad0ec679
Screen Reader|no
VM|0%
User Agent|Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code-Insiders/1.131.0-insider Chrome/148.0.7778.280 Electron/42.7.0 Safari/537.36
Installation pure|true

Extensions (3)

Name|Identifier|Author|Version
---|---|---|---
WSL|ms-vscode-remote.remote-wsl|ms-vscode-remote|0.104.3
C/C++|ms-vscode.cpptools|ms-vscode|1.33.4
rust-analyzer|rust-lang.rust-analyzer|rust-lang|0.4.2978

Theme extensions: 9

A/B Experiments

```
vsliv368cf:30146710
pythonvspyt551cf:31249598
nativeloc1:31118317
dwcopilot:31158714
dwoutputs:31242946
copilot_t_ci:31333650
g012b348:31231168
pythonrdcb7:31268811
pythonpcpt1:31399616
6518g693:31302842
envsactivate1:31349248
editstats-enabled:31346256
cloudbuttont:31366566
3efgi100_wstrepl:31403338
metis_rerank_treatment1:31411021
cp_cls_t_966_ss:31526232
4je02754:31455664
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31490507
cp_cls_c_1081:31454833
conptydll_true:31485575
e9c30283:31453065
test_treatment2:31471001
46204921:31447328
idci7584:31454084
e3e4d672:31454087
ei9d7968:31462942
nes-extended-on:31455475
de16b994:31458079
ah:31461780
89g7j272:31506658
hhf17803:31462392
7e187181:31482583
i2gc6536:31472020
52612955:31508042
h08i8180_copy:31475366
ec1eg703:31520046
ddid_c:31478205
hmra_i5g22:-9
ja75b849_copy:31554847
bjc72774_agent_sandbox:31538428
7df3h592:31491241
cp_cls_t_1082:31535311
logging_enabled_new:31490725
jb_cp_cls_t_632:31543129
b1g4i769:31503653
ha629193:31508444
cdk-lw-on:31524445
f9bf7985:31541111
a1ije391_t:31533808
g4a0e106:31510899
41836166:31537719
jbcp_cls_pctr_t:31531130
3f904173:31522231
cp_intellij_t_nes:31548657
jf4hg949:31526829
hide-eh-duplicates:31543293
h561g132:31534507
replace-eh-with-ah:31545853
ihg5j128:31534457
f412h606:31543414
enable_editor_pane_layout:31551200
52258b4d:31547953
22afc103_control:31548131
36h42362:31553900
c7c27ce7:31551212
voicemodeon:31556058
a81hg326:31551415
0dg73464:31554309
gpt56sol_default:31555061
d4c76da2:31554780
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
```

Contributor guide

Open the contributing guide

Research direction

Start in the Agents Window SSH connection flow and reproduce the reported `uname -s` command on a Windows 11 host using PowerShell 7. Trace the first command run after the tunnel connects; done means the Windows host completes agent startup without failing on the missing `uname` command.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.