Deleting authorized keys
Management console
CLI
- Go to the folder that the service account belongs to.
- At the top of the screen, go to the Service accounts tab.
- Choose a service account and click the line with its name.
- Under Authorized keys, click
- In the window that opens, click Delete.
If you don't have the Nebius AI command line interface yet, install and initialize it.
-
Get a list of authorized key
IDs
for a specific service account. Specify the service account name in the--service-account-name
parameter:ncp iam key list --service-account-name <service account name>
Result:
+----------------------+-------------------------------------+-----------+---------------------+ | ID | SUBJECT | ALGORITHM | CREATED AT | +----------------------+-------------------------------------+-----------+---------------------+ | ajeave7oktutd6kha7lq | serviceAccount:ajeedllrkjmam6jsn9n4 | RSA_2048 | 2022-03-13 20:14:22 | | ajeb794igb80sl0fbpvp | serviceAccount:ajeedllrkjmam6jsn9n4 | RSA_2048 | 2022-03-13 20:06:13 | +----------------------+-------------------------------------+-----------+---------------------+
-
Delete the old authorized key. Instead of
<ID>
, specify the authorized key ID:ncp iam key delete <ID>