I have a git project at Android Studio and a remote at BitBucket and I changed it to use SSH instead of HTTPS. I can make everything work using Atlassian\'s SourceTree, but in A
Despite my SSH-executable was set to Native I was getting that error because I have set password for SSH key file.
I haven't found the way how to specify password in Android studio but there is another solution, you can remove password which can be done with $ ssh-keygen -p. Then just confirm file location, enter your old password and leave new password blank.
Taken from How do I remove the passphrase for the SSH key without having to create a new key?