Bitbucket git без пароля
1. Генерация ключа.
$ cd ~/.ssh
$ ssh-keygen -t rsa [-C "yuor@email.com"]
2. Выводим на консоль и копируем ключ.
$ cat ~/.ssh/id_rsa.pub
3. From Bitbucket, click Add key.
4. Enter a Label for your new key, for example, Default public key.
5. Paste the copied public key into the SSH Key field.
6. Click Save.
7. Write
$ ssh -T git@bitbucket.org
8. View the message
Warning: Permanently added the RSA host key for IP address '0000:0000:0000::152' to the list of known hosts.
logged in as email.
Возможные проблемы
git все равно спрашиват пароль.
$ ssh -T git@bitbucket.org
logged in as username.
You can use git or hg to connect to Bitbucket. Shell access is disabled.
Изменил путь до репозитория с
https://username@bitbucket.org/username/project.git
на
git@bitbucket.org:username/project.git
$ git remote set-url origin git@bitbucket.org:username/project.git