This is generally because your bot doesn't use the same account than the one your are testig your ssh command.
Make sure the bot has, under its ~/.ssh
, a id_rsa
and id_rsa.pub
(with the latter copied on your BitBucket account, which should be the case since your ssh -T git@bitbucket.org
works on the terminal).
Check also the permission of that .ssh
folder and its files (again with the right account used by the bot), as described in "[Git SSH authentication][1]
" .
The OP rtk123 confirm in the comments:
I was using wrong ssh key with bot on mac osx server: I didn't add ssh key to server repository.