Forrest logo
back to the salt-key tool

salt-key:tldr:7dbe9

salt-key: Reject a minion key by name.
$ salt-key -r ${MINION_ID}
try on your machine

The command "salt-key -r ${MINION_ID}" is used in SaltStack, an infrastructure automation and configuration management tool, to delete the public key of a particular minion (client) from the Salt master's list of accepted keys.

  1. "salt-key" is the command-line utility for managing Salt keys on the Salt master.
  2. "-r" is the option/flag used to specify that you want to remove/delete a key.
  3. "${MINION_ID}" is a placeholder representing the ID or name of the minion for which you want to delete the key. You need to replace "${MINION_ID}" with the actual identifier or name of the minion you want to remove.

When you execute this command, SaltStack locates and deletes the public key associated with the specified minion ID from the Salt master, effectively revoking access of that minion to the Salt infrastructure.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the salt-key tool