$ git clone git@bitbucket.org:user01/android.git
Cloning into 'android'...
The authenticity of host 'bitbucket.org (104.192.143.3)' can't be established.
RSA key fingerprint is SHA256:.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'bitbucket.org,104.192.143.3' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
$ ssh -V
OpenSSH_7.2p2, LibreSSL 2.4.1
$ ls -a ~/.ssh
./ ../ known_hosts
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/user01/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/user01/.ssh/id_rsa.
Your public key has been saved in /Users/user01/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256: user01@host.local
The key's randomart image is:
+---[RSA 2048]----+
+----[SHA256]-----+
$ ls -a ~/.ssh
./ id_rsa known_hosts
../ id_rsa.pub
$ pbcopy < ~/.ssh/id_rsa.pub
Set up SSH for Git - Atlassian Documentation