- Step 1: create private key and public key
- https://support.atlassian.com/bitbucket-cloud/docs/configure-ssh-and-two-step-verification/
- ssh-kengen -c KEY_ACCOUNT_NAME
- Step 2: Copy private key to Server ~/.ssh , and chmod 600 to file
- Step 3: Setup public key On BitBucket
- Step 4: add ssh config at Server , and chmod 600 to file
Host bitbucket.org
User git
Hostname bitbucket.org
IdentityFile ~/.ssh/PRIVATE_SSH_KEY_FILE
IdentitiesOnly yes