Dev tip: add 'keychain' to solve Git: git@gitlab.com: Permission denied (publickey) with VSC

 If you set a password to push the commit to github or gitlab, it's safer. However, this will cause the issue: Git: git@gitlab.com: Permission denied (publickey). A solution is to regenerate the ssh key without password. But a better one is to add 'keychain' to ssh and solve this. It's perfect. Thanks Helge's solution.

Here is the link to solution. solution and a screen shot is here.

add keychain for the github ssh key
add keychain


Comments