Problem solved!
I found the keys in the database and saw that the user had added his personal public key to both a project and a repo. This made it impossible to add the key to the personal profile.
After the key was removed from the Project and Repo it worked fine again :-)
Cheers,
// Svante
Hi,
Here is how to find the actual repositories once you got the user id from AO_FB71B4_SSH_PUBLIC_KEY :
select * from repository inner join sta_repo_permission on repo_id = repository.id where user_id=<the ID>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Svante,
I have the same problem, but I'm not able to find the relevant Stash table which host the SSH keys.
Can you send me the table name please?
Thanks,
Bruno
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey, The SSH keys are stored in the table: AO_FB71B4_SSH_PUBLIC_KEY (per Stash 3.4) The following query will give you any keys including the name "my-key": {code} select * from "AO_FB71B4_SSH_PUBLIC_KEY" key where key."KEY_TEXT" like '%my-key%' {code} Hope that helped! Cheers, // Svante
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Here is how to find the actual repositories once you got the user id from AO_FB71B4_SSH_PUBLIC_KEY :
select * from repository inner join sta_repo_permission on repo_id = repository.id where user_id=<the ID>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am running with the same problem you faced.
I am very new to GIT/BITBucket.
Can you please let me know where I am supposed to run the SQL query, you have mentioned in the above post? I have GIT Bash installed in my desktop. Do I need to install any other software to run the SQL query?
Thanks in advance for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bubai,
You have to run the SQL query on the Bitbucket server.
Only your IT or release engineer can do that.
Cheers,
Bruno
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.