Julian
Posted on November 5, 2019
after an update my git clones failed with a permission denied.
λ git clone --no-checkout ssh://git@gitlab.com/your-user/your-project.git
Cloning into 'your-project'...
git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
i am not sure if its because of having installed putty in Program Files
which have a space in it but the solution for
me was to create an environement variable named GIT_SSH_COMMAND
with the value "C:\Program Files\Putty\plink.exe"
(you need the double quotes "
in the value!).
after this cloning works again.
side tip: i use Rapid Environment Editor to modify my environement variables.
links:
- cover image by mintchipdesigns https://pixabay.com/photos/boy-facepalm-child-youth-666803/
- stackoverflow info https://stackoverflow.com/questions/35110079/git-bash-and-pageant-are-not-using-keys
- Rapid Environment Editor https://www.rapidee.com/en/about
- shell used https://cmder.net/
💖 💪 🙅 🚩
Julian
Posted on November 5, 2019
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.