Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket server looses SSH key

Sergii Gatezh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 25, 2018

Hello,

We have a Bitbucket server installation and public SSH key saved in my account settings.

Time to time that public SSH key just disappears from account settings.

I wonder what should I look for in logs to find the reason of this happening?

Thank you

1 answer

2 votes
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 25, 2018

Hi @Sergii Gatezh,

 

Administrators have the ability to delete SSH keys for the users by browsing to the user details in the administration area.

 

The deletion of SSH keys is logged in the audit log (atlassian-bitbucket-audit.log) with the SshKeyDeletedEvent event.

 

For example, when I try to remove an access key as an admin for a user, this is the log line that is added:

172.18.0.1 | SshKeyDeletedEvent | adminUser | 1524722669622 | testUser | {"id":4,"public-key":"<accesskey>","label":"testUser@email.em","user":{"id":52,"name":"testUser","slug":"testUser"}} | @1JB4WPPx364x9178x0 | 1fqi5fr

 

The details of all logged events are available on the Audit events in Bitbucket Server page. You'll see that there is also a corresponding SshKeyCreatedEvent event that can be helpful to retrieve the full history of an access key.

 

Cheers,

Caterina

Sergii Gatezh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 26, 2018

Hi, @Caterina Curti!

Exactly what I was looking for!
Thank you very much!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events