Bitbucket, SSH auth, Visual Studio (2019) and VS Code

To get SSH key authentication working with Bitbucket from with both Visual Studio (2019 to be precise) and VS Code can be challenging. Some commands I’ve used are below.

VS Code

git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe

Visual Studio 2019

git config --global core.sshCommand "\"C:\Program Files\Git\usr\bin\ssh.exe\""

This requires Git being installed from https://git-scm.com/.

Company Reviews

Leave a Reply