gitlab omnibusでAccess Deniedで怒られた


Access denied.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

みたいな感じで怒られました

複数のユーザで同じキーを追加ー>削除してしまって、
gitlabで管理してるauthorized_keysに複数同じキーが登録されてしまったみたい。

ログインユーザが別のユーザとして認識されてしまっている模様。

そんなときは

  • /var/opt/gitlab/.ssh/authorized_keys

のそれっぽいキーを削除して対応しますた