I have a git repo on a remote server and use ssh with password authentication to clone,pull,push. From command line everything works fine.
However in vscode when I try to pull or push from remote repository, no password prompt is shown. Vscode seems to be waiting for something but nothing happens. Is this a bug, or am I doing something wrong?
I want to use visual studio code as git client on linux.
From command line:
In vscode:
There are two solutions I can think of:
EDIT:
Here is a quick recipe how to set up an SSH key for your git repo:
On the client side (where you cloned the repository)
~/.ssh
ssh-keygen
(mine is called id_rsa
)ssh-add ~/.ssh/id_rsa
On the remote side (where the repo is hosted)
~/.ssh/authorized_keys
~/.ssh/id_rsa.pub
)Afterwards try a git pull
on the client side. It should not ask for a password anymore and pull/push from vscode should work as well