In Windows WSL, I can clone from a remote repository with the generated shh keys, but It doesn't work in the powershell with the same ssh keys. Any idea?
The ssh keys were generated by
ssh-keygen
In Windows WSL, I can clone from a remote repository with the generated shh keys, but It doesn't work in the powershell with the same ssh keys. Any idea?
The ssh keys were generated by
ssh-keygen
but It doesn't work in the powershell with the same ssh keys. Any idea?
Try first
$env:GIT_SSH_COMMAND='ssh -Tv'; git clone git@gitlab.com:myuser/myrepo.git
(as I recommended here)
You will see which SSH key is actually used.
And you might need to set GIT_SSH
with $Env:GIT_SSH=$((Get-Command -Name ssh).Source)
, as commented here.