Can't SSH into my Bitbucket repository - conq: repository access denied

Issue #12926 invalid
Dukagjin Surdulli
created an issue

I have followed a million guides regarding this and I cannot get it to work. Earlier, I successfully pushed via SSH to my private Bitbucket git repository, now suddenly it wont work.

I have recreated the keys with a new passphrase, added it to my Bitbucket settings and it wont work.

Okay, here are the steps I took:

  1. Deleted old key pair (project1 and
  2. Recreated it with this command ssh-keygen -f ~/.ssh/project1 -C "project1"
  3. Created a config in ~/.ssh file for my two Bitbucket accounts, with the following contents:
Host project1
 IdentityFile ~/.ssh/project1
Host project2
 IdentityFile ~/.ssh/project2
  1. Grabbed the contents of and created a new SSH key entry in my Bitbucket account.
  2. Added ssh-agent in my ~/.zshrc plugin list like this: plugins=(git ssh-agent) and restarted Terminal
  3. Did ssh-add -l and saw only project2 was loaded
  4. Did ssh-add ~/.ssh/project1, entered my passphrase and success, like this:
2048 SHA256:THESHA256 /Users/myuser/.ssh/project2 (RSA)
2048 SHA256:THESHA256 /Users/myuser/.ssh/project1 (RSA)
  1. Restarted Terminal and did ssh-add -l and it listed both entries
  2. Went to my project and did git push and it told me I had no access.

When I do ssh -T, it tells me I'm logged in with the username of project2.

logged in as project2_user.

My system is OS X 10.11.5

I could never fix multiple identities on my computer and always used HTTPS, but I need to make everything more secure with SSH, which also allows my account to have two-factor authentication. Therefore using SSH is a must now and I don't know what to do.

P.S: I did the creating steps for the identity for project2 too, but I'm fairly certain that it doesn't work either.

Guide I followed:

project2 has no passphrase, while project1 does! Just thought maybe this is relevant.

Comments (1)

  1. Theodora Boudale staff

    Hi Dukagjin,

    I went ahead and created an account in our support system for you, you should have received an e-mail to set your password. I have copied your request there, so if you log in with your account you should be able to see this ticket and we can work on it.

    I've marked this ticket as invalid as our issue tracker is for bug reports and feature requests specifically, if you need support with an issue please feel free to open a ticket in our support portal and we'll be more than glad to help you.

  2. Log in to comment