Using SSH protocol with Bitbucket

Reference - https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html

Following steps must be done for FlexDeploy Server and Endpoint where Git commands will be executed.

  1. Locate or generate default SSH keys. If no key found generate using "ssh-keygen" command, if you accept defaults id_rsa and id_rsa.pub files will be generated in ~/.ssh folder.
  2. Add SSH public key to Bitbucket account. You must use id_rsa.pub for this purpose. Note that Access keys only provide read-only access, so if you need read/write access, then load public keys in SSH Keys section.
  3. Test SSH connection.
  4. Configure SCM Integration instance.
    1. URL Example - git@bitbucket.org:flexagonteam/libraries.git