title: Git SSH public key authentication failed with git on Azure DevOps
body: <p>I am trying to push a git repo from PowerShell into an Azure DevOps repo, and I keep getting different auth errors when trying to push it.</p>
  <p>I am hoping somebody can shed some light on what I check, and do a proper walkthrough.</p>
  <p>E.g.,</p>
  <pre class="lang-sh prettyprint-override"><code>git remote add origin git@ssh.dev.azure.com:v3/MyAzure/MyProject/MyRepo
  git push -u origin --all
  </code></pre>
  <p>I keep getting:</p>
  <blockquote>
  <p>git@ssh.dev.azure.com's password:</p>
  </blockquote>
  <p>I've input all sorts of passwords, but it's still failing. Which password is it talking about?</p>
  <p>Alternatively, I've also gotten:</p>
  <blockquote>
  <p>Permission denied, please try again.</p>
  <p>fatal: Could not read from remote repository.</p>
  <p>Please make sure you have the correct access rights and the repository exists.</p>
  </blockquote>
  <p>Verification:</p>
  <pre class="lang-sh prettyprint-override"><code>$ ssh -T myemail@mycompany.com
  ssh: connect to host mycompany.com  port 22: Connection refused
  </code></pre>
  <p>I have done the following:</p>
  <ul>
  <li>Created a repo in Azure DevOps</li>
  <li>Created a SSH key using git-bash, as per Microsoft's documentation, copied and pasted without spaces into Azure DevOps security.</li>
  <li>Gone to my profile/security and added an SSH key (generated in git-bash)</li>
  </ul>
  <p>Am I missing the obvious? Is it better to use personal access token? Can anyone provide a walk through of the correct steps?</p>