Git: Clone
in Visual Studio Code on a mac returns Permission denied, please try again
. From terminal within Visual Studio Code it works to perform git clone
.
In Visual Studio Code on a Mac, I do the following:
- I do
Git: Clone
I input the ssh repository URL that is in the following format:
ssh://<username>@<repository-host>/<path>/<rep>.git
I "Select Repository Location" folder, and get the following dialog:
This function never asks me for any password!
If I open the Git Log the output is this:
> git clone <ssh-repository-URL> <path>
Cloning into '<path>'...
Permission denied, please try again.
Permission denied, please try again.
Received disconnect from <IP> port 22:2: Too many authentication failures for <username>
Disconnected from <IP> port 22
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
In terminal it works:
mac:rep username$ git clone
Cloning into '<repository>'… <ssh-repository-URL>
The authenticity of host ‘<repository-host> (<repository-ip>)' can't be established.
ECDSA key fingerprint is SHA256:<fingerprint>.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '<repository-host>,<repository-ip>' (ECDSA) to the list of known hosts.
Password:
remote: ...
remote: ...
remote: …
Receiving objects: 100% (.../...), ... | ... MiB/s, done.
Resolving deltas: 100% (.../...), done.
Any clues on why Git: Clone
Visual Studio Code never asks for the server password?