microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.19k stars 28.06k forks source link

Git authentication #209316

Open cervantesandres opened 3 months ago

cervantesandres commented 3 months ago

Type: Bug

When pulling from azure dev ops I get an authentication error message. Im able to pull fine within the terminal.

VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:20:17.278Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Xeon(R) Gold 6226R CPU @ 2.90GHz (4 x 2893)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software| |Load (avg)|undefined| |Memory (System)|10.00GB (3.16GB free)| |Process Argv|--crash-reporter-id d0922d1c-98e5-4c38-9536-bf02e6e4d2d5| |Screen Reader|no| |VM|100%|
Extensions (20) Extension|Author (truncated)|Version ---|---|--- ibmi-languages|bar|0.6.15 gc-excelviewer|Gra|4.2.59 code-for-ibmi|hal|2.8.0 vscode-ibmi-walkthroughs|hal|0.4.0 ibmidebug|IBM|1.0.0 mdopen-8-6|Mid|0.0.26 remote-ssh|ms-|0.109.0 remote-ssh-edit|ms-|0.86.0 remote-explorer|ms-|0.4.3 ibm-i-run-sql-from-acs|Nie|0.0.4 vscode-thunder-client|ran|2.20.3 java|red|1.28.1 vscode-rsp-ui|red|0.24.9 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.3.1 vscode-java-debug|vsc|0.57.0 vscode-java-dependency|vsc|0.23.6 vscode-java-pack|vsc|0.25.15 vscode-java-test|vsc|0.40.1 vscode-maven|vsc|0.44.0
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp1r3:30993539 dsvsc020:30976470 pythonait:31006305 7ghi1836:30988842 dsvsc021:30996838 gd77d436:30999572 ```
cervantesandres commented 3 months ago

I've gathered additional information on the issue at hand. In response to Azure's upcoming cessation of support for SSH-RSA keys, I generated an RSA-SHA2-512 key as a replacement. After removing the SSH-RSA key from Azure and adding the SHA2 key, authentication fails in VSCode while it continues to function properly in the terminal.

lszomoru commented 6 days ago

Could you please try the following steps to that we can take a closer look at the git auth flow:

  1. Close all instances of VS Code
  2. From a command prompt window run set GIT_TRACE=1 && code
  3. Open the integrated terminal and run git pull. You should see detailed logs related to SSH auth
  4. Click the "Sync Changes" button, or invoke the "Git: Pull" command.
  5. Open the https://code.visualstudio.com/docs/sourcecontrol/overview#_git-output-window and look at the logs.