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

Table 1. 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

Table 2. 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

  1. To store a public key for a user in the appliance system using mkauthkeys command, enter the following command:
    mkauthkeys add [-h] -u username -k authkey -c cluster
    Adds the specified public key AUTHKEY for the given USERNAME under the specified CLUSTER.
  2. 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
  3. 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