Hi, Iām using Visual Code Studio on mac. I donāt know why, but I now get an error Git: git@gitlab.com: Permission denied (publickey). when I try to push. I went through the Generating a new SSH key pair section on this page again, generated a new ssh key. I added it to my gitlab. I just donāt know what my next step is supposed to be or how I can check if everything is set up all right. FYI, I really am a newbie!
Can you please share the exact steps you did, including the location of the generated ssh key pair? Also, which public key did you add to your gitlab.com profile?
Hi again, I deleted my whole ~/.ssh folder and did all the again. Tried closing/reopening the app. I also tried while using Github Desktop, but it doesnāt work.
No idea unfortunately. I have stopped using SSH a while ago and am only using https auth tokens stored in my security key chain. The same should work with VS Code e.g. with adding the git clone httpsā¦ command being asked for the credentials just once.
I wouldnāt mind using https auth tokens instead. After 10 minutes browsing the internet, I have no idea how tough. Would you have a source explaining how I can switch it?
So it knows where to look, and this will also make it so you donāt need to enter the passphrase each time, and thus VSCode is allowed to use they key, cause itās unlocked not just when youāre pushing through CLI.