title: Acessing a private Git Repo from VSCode
body: <p>I have initialized a bare git repo on a Linux server.</p>
  <p>I added the remote repo to my local repository like this:</p>
  <pre><code>git remote add origin {username}@{ip}:/home/{username}/new-repos/AquaformDocs
  
  </code></pre>
  <p>After that I succesfully pushed the content of the local repo to the remote repo.</p>
  <p>From Git Bash I can easily push/pull, like this:</p>
  <pre><code>$ git pull
   {username}@{ip}'s password:
   Already up to date.
  </code></pre>
  <hr />
  <p>But when I open the source control panel in VS Code, it doesnt seem like that it recognizes the remote repo:</p>
  <p><a href="https://i.stack.imgur.com/thglu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/thglu.png" alt="enter image description here" /></a></p>
  <p>If I click the &quot;Publish Branch&quot; button, I get the following error OUTPUT:</p>
  <pre><code>[2022-06-10T11:38:51.631Z] &gt; git push -u origin master [142ms]
  [2022-06-10T11:38:51.631Z] Permission denied, please try again.
  Permission denied, please try again.
  {username}@{ip}: Permission denied (publickey,password).
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>
  <p><strong>How could I fix this?</strong></p>