I have a bitbucket account set with ssh key I have copied the ssh public and private keys in my .ssh folder I have added a ssh config file :
cat .ssh/config
host bitbucket.org
IdentityFile ~/.ssh/bitbucket-ssh-key
IdentitiesOnly yes
The ssh identification works well BUT it asks for my passphrase at each git push .. witch goes again the purpuse of all this setting. What have I done wrong ?
You probably do not have your private key added to the agent.
See if doing an ssh-add ~/.ssh/<private key file>
helps.
Also, make sure the agent is running.
I get an error :
ssh-add .ssh/bitbucket-ssh-key
Could not open a connection to your authentication agent.
I had forgotten to start the ssh-agent
eval "$(ssh-agent -s)"
Then git push went without a glitch ;)
Thanks for the RTFM pointer!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.