Tag Archives: collaboration

GIT-Bitbucket Error:Permission denied (publickey).

Nah kalau ini buat catetan pribadi saya aja sih.
Saya install ulang OS, trus pas mau push git ke http://bitbucket.org dapat error berikut:

Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

Nah gugling-gugling, ini caranya:

1. Login ke http://bitbucket.org,

2. Lalu klik di pojok kanan atas yg ada gambar orang, pilih manage account

3. Di kiri bawah pilih SSH Keys

4. Buka Terminal

5. Generate identity ssh baru ( kalau ada pertanyaan cukup tekan enter-enter aja terus ) 🙂

ssh-keygen

6. Load identity ke ssh-agent management program

ssh-add ~/.ssh/id_rsa

7. Lihat daftar ssh-key yang sedang di manage

ssh-add -l

8. Copy public key file

cat ~/.ssh/id_rsa.pub

9. Nah copy isinya 🙂

10. Kembali ke browser

11. Klik add key

12. Isi label terserah, lalu paste yang tadi di copy ke KEY.

13. Klik Add

14. Kembali ke terminal, cek udah bisa login atau belum

ssh -T git@bitbucket.org

Kalau punya saya udah bisa login dan outpunya menjadi seperti ini:

logged in as Username_bitbucket.
You can use git or hg to connect to Bitbucket. Shell access is disabled.

 

selamat mencoba:)