Problem
Pushing via Git > Push.. operation fails with the following error:
identity_sign: private key <path_to_private_ssh_key> contents do not match public git@gitee.com: Permission denied (publickey). Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Cause
SSH keypair generated from 1Password doesn't work with the Git integration in the IDE.
Resolution
Generate SSH keypair (private/public) in Git Bash instead:
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"- press
Enterto accept the default location - press
Entertwice to not use a passphrase (or use one if required) - Copy the contents of the public key to your remote repository
Comments
0 comments
Please sign in to leave a comment.