title: SSH Bitbucket Clone in Visual Studio 2019 not working
body: <p>Cloning a bitbucket repo using Visual Studio 2019 not working. I am able to clone using command line but not using Visual Studio 2019 Git extension.</p>
  
  <p>Command Line:</p>
  
  <p><code>start-ssh-agent.cmd</code></p>
  
  <p>then </p>
  
  <p><code>git clone &lt;ssh url&gt;</code></p>
  
  <p>This works fine in command line, but when trying to clone using Visual Studio 2019 (Default Git extension) I am getting this error. </p>
  
  <p><a href="https://i.stack.imgur.com/Rgehm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Rgehm.png" alt="enter image description here"></a></p>
  
  <p>Cloning works fine using gitbash command also. </p>
  
  <p><code>$ eval ssh-agent -s</code></p>
  
  <p><code>$ ssh-add id_rsa</code></p>
  
  <p>VS git extension works fine for https urls but not using SSH urls. </p>
  
  <p>I created key by following this link <a href="https://confluence.atlassian.com/bitbucketserver067/creating-ssh-keys-979426660.html" rel="noreferrer">https://confluence.atlassian.com/bitbucketserver067/creating-ssh-keys-979426660.html</a> and updated the key in bitbucket. </p>
  
  <p>Any of you have encountered this issue or am I missing any steps here to configure VS 2019 to work for SSH Urls?</p>
  
  <p>Thanks</p>