Setting up github and bitbucket on the same computer Github will be the main account and bitbucket the secondary. Create SSH Keys ssh-keygen -t rsa -C "github email" Enter passphrase when prompted. If you see an option to save the passphrase in your keychain, do it for an easier life.