Git GUI tools result in permission denied but Powershell and Ubuntu (WSL) succeed
Hey, all!
I use Webstorm with WSL2 workflows. I have Webstorm configured to use my Git path at `\\wsl$\Ubuntu\usr\bin\git`
I recently upgraded from Windows 10 to Windows 11, which broke all of my WSL2 workflows. While setting everything up again. I noticed I have all of my operations succeeding except for Git operations that are in the `Git` dropdown menu in Webstorm. Example: `Git → Update Project` (Default hotkey is CTRL + T) results in:
git@bitbucket.org: Permission denied (publickey).
Could not read from remote repository. Please make sure you have the correct access rights and the repository exists
However, if I run a `git pull` in the Terminal (Powershell) or Ubuntu (through WSL2), the operation completes successfully, so my SSH key is setup fine. These operations only fail if I go through the GUI or use a hotkey (CTRL + T for Update Project, CTRL + SHIFT + K for `Push`, etc).
It is like the Git hotkeys in Webstorm are using different SSH configurations than what is being used in the Terminal. Has anyone seen this before and can you provide some tips?
OS Version: Windows 11 Pro Version 10.0.26100.2033
Webstorm Version: WebStorm 2023.2.8 Build #WS-232.10335.13, built on September 5, 2024
WSL Version: WSL version: 2.3.24.0
Kernel Version: Kernel version: 5.15.153.1-2
Please sign in to leave a comment.
Hey,
I believe the ide will inherit env variables from your native terminal. Can you start IDE directly from Powershell and test?
Dino Letic - Wow, that fixed it. I added Webstorm to my $PATH then started it using webstorm <path/to/project> and all of the built-in Git tools are working. Thanks for the tip!