To use <git push> on Visual Studio Code, but show "Could not read from remote repository."
<p>I started studying Git and GitHub.</p>
<p>And now, I could create my repository to practice and I could push commits to origin repository(in GitHub) on git bash.</p>
<p>But when I tried to push on Visual Studio Code, I have received this error</p>
<blockquote>
<p>Permission denied (publickey).</p>
<p>fatal: Could not read from remote repository.</p>
</blockquote>
<p>and failed to push to origin repository.</p>
<p>but <strong>I already remote local repository to origin repository with ssh key on git bash and I could complete push and pull between local repository and origin repository.</strong></p>
<p><a href="https://stackoverflow.com/questions/34400272/visual-studio-code-always-asking-for-git-credentials">In others' case</a>, they were asked GitHub credentials to push or sync, but in my case, I could not be asked any credentials like ssh key.</p>
<p>In this case, What should I do? Thank you.</p>