SSH Public Keys
Use the following commands to manage SecureShell (SSH) public keys for the CLI administrator (cliadmin), CLI viewer (cliviewer), and Service ServiceLogin user accounts.
Note: If the Veeam feature on the system is supported, licensed, and enbabled, the SSH public key commands can be used to manage the public keys for the Veeam agent (veeam).

This command imports list public keys associated with the CLI administrator, CLI viewer, and Service user accounts.
Command
syscli ‑‑list publickey [--user cliadmin|cliviewer|servicelogin|veeam]

Review the following attribute descriptions.
|
Prints a list of public keys containing the following information: user and key alias. |
|
CLI users whose keys are to be listed. If no user is specified, all key users are printed. |

This command imports a public key and associates it with the specified CLI user.
Command
syscli ‑‑add publickey ‑‑user cliadmin|cliviewer|servicelogin|veeam --alias <key alias> --key <public key>

Review the following attribute descriptions.
|
Imports a public key. |
|
CLI user whose key is to be renamed. |
|
Short alpha-numeric string (up to 20 characters) alias used to identify the key to be added. |
|
The RSA/DSA public key to be added. The key must be in the following form: <key type> <base64 encoded string (letters, numbers, '+', '/', '=')> |

This command allows the CLI administrator to rename public key aliases of the CLI users.
Command
syscli ‑‑edit publickey ‑‑user cliadmin|cliviewer|servicelogin|veeam --alias <key alias> --newalias <new key alias>

Review the following attribute descriptions.
|
Changes key alias of the specified key. |
|
Associates the imported public key to a specified CLI user: CLI administrator (cliadmin), CLI viewer (cliviewer), Service ServiceLogin, or Veeam agent (if installed and enabled on the system). |
|
Current key alias. |
|
New key alias to identify the key. The key alias must be a short alpha-numeric string (up to 20 characters) alias used to identify the key to be added. |

This command deletes a public key associated with a specified CLI user.
Command
syscli ‑‑delete publickey ‑‑user cliadmin|cliviewer|servicelogin|veeam --alias <key alias> [--sure]

Review the following attribute descriptions.
|
Removes a specified key associated with a specified CLI user. |
|
Name of the CLI user whose key is to be removed. |
|
Key alias that identifies the key to be removed. |
[--sure] |
If specified, this command will execute immediate without asking for confirmation. |

This command deletes all public keys associated with a CLI user.
Command
syscli ‑‑deleteall publickey ‑‑user cliadmin|cliviewer|servicelogin|veeam [--sure]

Review the following attribute descriptions.
|
Removes all public keys associated with the specified CLI user. |
|
Name of the CLI user whose keys are to be removed. |
[--sure] |
If specified, this command will execute immediate without asking for confirmation. |