Skip to content

Authentication failure on fetch from github in WSL2/remote workspace #876

@pewscorner

Description

@pewscorner

Type: Bug

I have a number of git workspaces cloned from github repos. When I open any of them in remote WSL2 mode in VS Code and click the fetch button in Git Graph, it needlessly asks for user name and password and then fails the authentication.

VS Code's own source control fetch works fine (doesn't ask for credentials), as does "git fetch" on the command line, and when I open the same workspaces in native Windows mode, then Git Graph fetch also works fine.

I'm not sure when this issue appeared, but it did once work.

By the way, I'm seeing the same issue on a completely different setup where it's a real remote workspace instead of WSL2, but I only recently started using that with github, so I've never seen that work.

This may be related to #672 although that one specifically mentions Gitlab.

Extension version: 1.30.0
VS Code version: Code 1.98.2 (ddc367ed5c8936efe395cffeec279b04ffd7db78, 2025-03-12T13:32:45.399Z)
OS version: Windows_NT x64 10.0.26100
Modes:
Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2

System Info
Item Value
CPUs Intel(R) Core(TM) i9-14900K (32 x 3187)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 61.66GB (46.54GB free)
Process Argv
Screen Reader no
VM 0%
Item Value
Remote WSL: Ubuntu
OS Linux x64 5.15.167.4-microsoft-standard-WSL2
CPUs Intel(R) Core(TM) i9-14900K (32 x 0)
Memory (System) 30.19GB (28.01GB free)
VM 0%

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions