VsCode bitbucket git using ssh key
If you are using bitbucket git on VsCode, then you can add ssh key to make everything easier.
Generate a Key:
Use ssh-gen or PuttyGen to generate an SSH Key pair: private and public.
Private key stays with you and public key stays on the Bitbucket server.
Add Key to BitBucket
Go to BitBucket Settings -> Personal -> SSH Keys
Click on Add Key and paste your public key here
Make sure to add the Private Key ppk to Pagent app. On windows it gets installed with Putty.
Error in VsCode
git push origin master:master
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
This error means that there might be some problem with Pageant. Check if private key added is the correct one matching your Public key on BitBucket