I've set up a new project on Bitbucket (private repo) and have followed their instructions ( Set up an SSH key ) to create an SSH key for when working with Bitbucket in my new Android Studio project. Everything is set up correctly to the best of my knowledge and yet every time I wish to push/fetch, Android Studio keeps asking for my passphrase.
Just to elaborate, I've followed these steps:
To clarify, I've also checked the config file for Android Studio and it is using the correct SSH URL. Finally, I've scoured many sources online for a solution and have done the obvious so far, including restarting Android Studio and my PC (Windows), yet the problem persists.
请运行此命令,其中〜/ .ssh是您的公共密钥的路径
ssh-add -K ~/.ssh/id_rsa
You need an ssh-agent . That's what caches the passphrase .
Try the following on git bash:
eval $(ssh-agent)
# Change this if needed
key='~/.ssh/id_rsa'
ssh-add $key
See also:
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.