![]() ![]() I think it might be easier to just reset the SSH key in SourceTree, but couldn't find any references online regarding how to achieve that. Tried ssh-add /path/to/file again with the password: keep saying it's Bad Passphrase.I don't understand why this happens. ![]() Opened Keychain Access, found the SSH key for this BitBucket account, show password, got it.Tried chmod 600 /path/to/file, and then ssh-add /path/to/file: ask for passphrase, which I forgot.Tried ssh-add /path/to/file: file permission 0644 is too open, ignored.Tried ssh-add -l: The agent has no identities.Confirmed my SSH key is still in BitBucket, also double checked the key strings are exact match.I've done some research, tried the solutions in this article, but still stuck. Today I tried to do fetch / push, all failed with this permission denied (public key) issue. Haven't used this Mac to code for a while. Entering the passphrase seems to work for this and there is an option to store the password in the keychain, but I don't want to do this (otherwise what's the point in the passphrase).I use SourceTree + BitBucket combination with SSH setup on my Mac. Now whenever I do a push I get a box saying "Password Required For user git on host ", which is different to the box I used to receive asking for my passphrase. Previously when I would do a push, the first push of the day would ask me for my SSH key passphrase, but then I would be able to interact with the remote repo without needing to enter it again (presumably SSH agent was running in the background somewhere). I have sourcetree setup to use SSH keys with both GitHub and Bitbucket and I've connected both accounts under preferences > accounts. ![]() Released in version 2.4 for Mac, SourceTree automates the whole process with a single click of a button. I also upgraded my sourcetree to the latest version (I can't remember what version I had before that unfortunately). Also, gone are the days of manually creating and storing SSH keys via command line. I've recently upgraded to Mac OS 10.13 from 10.11. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |