# 1. Create a key

ssh-keygen -t ed25519 -C ‘vadymsamoilenko@oliver,agency’ -f ~/.ssh/id_bitbucket 

# 2. Display the public key (copy it)

cat ~/.ssh/id_bitbucket.pub

# 3. Add the key to Bitbucket via your browser

# 4. Create an SSH config

cat > ~/.ssh/config << "EOF"
Host bitbucket.org
    HostName bitbucket.org
    User git
    IdentityFile ~/.ssh/id_bitbucket
    IdentitiesOnly yes
EOF

# 5. Set permissions

chmod 700 ~/.ssh

chmod 600 ~/.ssh/id_bitbucket

chmod 600 ~/.ssh/config

# 6. Verify

ssh -T git@bitbucket.org