Skip to content

authorized_keys file got empty for instances behind bastillion server #507

@akanksha-singh-robomq

Description

@akanksha-singh-robomq

I have instances behind the Bastillion server, and lately, we have been experiencing frequent issues of 'permission denied' when trying to SSH into those instances using SSH keys created through the Bastillion account.

Reason: After investigating, I found that the 'authorized_keys' file of the instances is getting emptied, which prevents us from SSHing into the systems.

Exploration: I have explored Bastillion's SSH key management, and it appears that it overrides the 'authorized_keys' file every time a key is added or removed.

I am currently facing difficulties in replicating the issue. I want to understand what exactly happens behind the scenes when the 'authorized_keys' file gets emptied. I need help in replicating the issue.

So far, I have attempted the following methods, but none of them have worked:

  1. Created keys frequently from different users.
  2. Deleted keys from different users.
  3. Deleted keys directly from the 'authorized_keys' file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions