


I attempted to push/pull from the Windows command prompt and I cannot. I use the Git executable shipped with Github Desktop located at "C:\Users\\AppData\Local\GitHubDesktop\app-1.0.3\resources\app\git\cmd\git.exe", not the WSL one. Since it appears PHPStorm supports the use of "~/.ssh/config" I assumed I had to specify my bash executable with "-login -i" in order to specify what it runs the Git executable in (as well as make use of my logon scripts). I'm able to push/pull from Cygwin (I'm assuming because it picks up my "~/.ssh/config" file correctly). I use Cygwin as a bash emulator, not WSL. Here is the screenshot of the particular error message: Since it would have a different home directory, it wouldn't have the appropriate keys or "~/.ssh/config" file which would result in the failure, but it's just a guess. I don't recall ever having this trouble before when setting up my environment, has anyone experienced similar behavior? Is there a way to turn on additional logging which may indicate where/why it's failing? I suspect the user the UI based Git is running as is different than the one used in the built in terminal. I also tried setting the file to 777 permissions to rule out the issue in this question. I've connected via SSH using the intended method outside of PHPStorm and can confirm the appropriate entry is in my "~/.ssh/known_hosts" file. I've been restarting PHPStorm after any and all configuration changes to ensure they're being used. Under Git settings I've used both "Native" and "Built-in" SSH mode with no luck.

I've specified the proper Git executable under the Git settings. I've specified the proper bash.exe under the terminal settings. I'm using SSH with a "~/.ssh/config" file with no passphrase for authentication. However from the built in terminal (and external terminals) I don't have any issue. For some reason Git can't connect to my remote when using the PHPStorm UI on Windows.
