mkauthkeys Command
Purpose
The mkauthkeys command is used to add store the desired public key in the appliance system. After the public key is stored, you can access the PowerVC appliance using the corresponding private key without a password.
Syntax
mkauthkeys [add,remove,show] [-h]
Description
The mkauthkeys command is used to add store the desired public key in the
appliance system.
Note: You can add, remove, or view own SHH key using mkauthkeys.
Use pvcroot to add, remove, or view the ssh keys of other users.
Flags
| Item | Description |
|---|---|
| -h or --help | Displays help about the mkauthkeys command. |
| -u username | Specify the username. |
| -k authkey | Specify the public key for authorization. |
| -c cluster | Specify the cluster. |
| -cmt comment | Specify the comment. |
Positional arguments
| Argument | Description |
|---|---|
| Add | Store a public key for a user in the appliance system. |
| remove | Remove a stored public key for a user from the appliance system. |
| show | Display the stored public keys for a user in the appliance system. |
Examples
- To store a public key for a user in the appliance system using mkauthkeys
command, enter the following
command:
Adds the specified public key AUTHKEY for the given USERNAME under the specified CLUSTER.mkauthkeys add [-h] -u username -k authkey -c cluster - To remove a stored public key for a user with the specified comment from the appliance system,
enter the following
command:
mkauthkeys remove [-h] -u username -cmt comment -c cluster - To display the stored public keys with the specified comment for a user in the appliance system,
enter the following
command:
mkauthkeys show [-h] -cmt comment -u username -c cluster