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
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
Hi, @Caterina Curti!
Exactly what I was looking for!
Thank you very much!
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.