I am facing problem while trying to connect to GitLab remote repo through SSH here are the steps done so far:
I can't publish branches from VSCODE and getting the below error and I am using MAC.
Permission denied (publickey).
fatal: Could not read from remote repository.
so when i am on gitlab website i am able to commit and publish branches
That has nothing to do with your local SSH key.
Test first on your local computer (Mac) if your key is working with:
ssh -Tv [email protected]
That will try and use your ~/.ssh/id_rsa private key, which means your ~/.ssh/id_rsa.pub public key must have been registered to your SSH profile GitLab account first.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With