The instructions for macOS on the "Setup an SSH key" page say
ssh-add -K ~/.ssh/<private_key_file>
but this does not work:
>ssh-add -K ~/.ssh/bitbucket
ssh-add: illegal option -- K
usage: ssh-add [options] [file ...]
Options:
-l List fingerprints of all identities.
-E hash Specify hash algorithm used for fingerprints.
-L List public key parameters of all identities.
-k Load only keys and not certificates.
-c Require confirmation to sign using identities
-m minleft Maxsign is only changed if less than minleft are left (for XMSS)
-M maxsign Maximum number of signatures allowed (for XMSS)
-t life Set lifetime (in seconds) when adding identities.
-d Delete identity.
-D Delete all identities.
-x Lock agent.
-X Unlock agent.
-s pkcs11 Add keys from PKCS#11 provider.
-e pkcs11 Remove keys provided by PKCS#11 provider.
-q Be quiet after a successful operation.
This option seems to have been removed from SSH:
ssh-add doesn't support -K to add private key to OS X keychain #514
"We no longer support interaction with the OS X Keychain"
Sep 29, 2015
So, how do I setup an SSH key with bitbucket now?
I don't seem to have the option of specifying a password because my account was created using a google login.
Hi Alex, welcome to the Community!
This is expected behaviour when you log in with a Google account, you'll need to create an App Password to use it with your SSH key. To create an App password:
For more info, you can check App Passwords.
Hope that helps,
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.