Bitbucket Server is throwing "git was successfully authenticated via public key, but is no longer active in the underlying user directory. The request has been blocked"

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

問題

Bitbucket Server is receiving SSH requests with a valid public key that is not associated to an active user.


atlassian-bitbucket.log に次のメッセージが表示される。

INFO c.a.b.i.ssh.server.SshCommandAdapter git was successfully authenticated via public key, but is no longer active in the underlying user directory. The request has been blocked

診断

環境

原因

この問題の原因として 2 種類の原因が確認されています。

Cause #1 - User deleted from the delegated directory

This happens because when a user is deleted from the delegated user directory, it is still preserved in Bitbucket Server. A user removed or deactivated from a delegated LDAP user directory needs to be manually removed as described on the Delegated LDAP user directory page.

Cause #2 - Changes in remote directory

Some configuration was performed in the remote directory, affecting Bitbucket synchronization.

ソリューション

Cause #1 - User deleted from the delegated directory

While this is the expected behavior and is not a symptom of any problem, it is still recommended to address this to make sure that no requests are authenticated using an SSH public key.

To address this:

  • delete the user from Bitbucket
  • remove the SSH key from the user

This is a suggestion to automatically delete these users from Bitbucket:  BSERV-11403 - Getting issue details... STATUS


Cause #2 - Changes in the remote directory

Check what change was made in the remote directory that is impacting Bitbucket and address it by fixing it or reverting the change. 


説明 Bitbucket Server is throwing "git was successfully authenticated via public key, but is no longer active in the underly ing user directory. The request has been blocked"
製品Bitbucket Server

Last modified on Mar 10, 2022

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.