Setting git (sesuaikan email dan nama anda)

$ git config --global user.name "khaidir fahram"
$ git config --global user.email khaidir@fahram.com

Generating SSH key

  1. Buka Terminal.

  2. Paste perintah berikut, sesuaikan dengan email di bitbuckett.

    ssh-keygen -t rsa -b 4096 -C "khaidir@fahram.com"
    
  3. Tekan enter saat muncul "Enter a file in which to save the key," .

    Enter a file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]
    
  4. Kemudian tekan enter 2 kali.
    Enter passphrase (empty for no passphrase): [Press enter]
    Enter same passphrase again: [Press enter]
    
  5. copy output ssh key
    cat ~/.ssh/id_rsa.pub 
    
 

 

Setting Bitbucket

Pada halaman bitbucket klik icon profile di pojok kiri bawah. kemudian klik menu "Bitbucket settings"

Pada bagian Security klik menu "SSH keys". kemudian klik tombol "Add Key"

Paste key yang sudah dicopy pada form input key. Kemudian tekan tombol "Add Key"

 

 

Komentar