Setting User Authentication Public Key

Command to set public key.

The setUserAuthPubKeycommand associates a user with a currently registered public key.

In the User Management utility, open a command prompt and run setUserAuthPubKey command to associate a user with a currently registered public key.

Syntax

setUserAuthPubKey <KeySlot Id> <UserName> 
Parameter Description
keySlot Id Key Index, you can get the key index using the command listtUserAuthPubKeys.
UserName

Username of the target user.

Example

cloudmgmt>setUserAuthPubKey 1 test_user
setUserAuthPubKey on 3 nodes
setUserAuthPubKey success on server 0(10.144.157.163)
setUserAuthPubKey success on server 1(10.144.157.163)
setUserAuthPubKey success on server 2(10.144.157.163)	
cloudmgmt>listUserAuthPubKeys
listUserAuthPubKeys success on server 0(10.144.157.163)

Number of User Auth Pub Keys: 4
Key Index     User ID          Digest

0             22                 A42EE366A98CE6F4BF8393E6F0FA6FBE17D6D4BF
1              4                 FEED9DB1ECC95630EF957351389ECF118371E0E6
2              0                 A2FC3597729A800CAE96770FC29C64CF5EE70F9F
3              0                 7BE72766A254542F393E017703FB1865C44D9D50

listUserAuthPubKeys success on server 1(10.144.157.163)

Number of User Auth Pub Keys: 3
Key Index     User ID          Digest

0             22                 A42EE366A98CE6F4BF8393E6F0FA6FBE17D6D4BF
1              4                 FEED9DB1ECC95630EF957351389ECF118371E0E6
2              0                 7BE72766A254542F393E017703FB1865C44D9D50

listUserAuthPubKeys success on server 2(10.144.157.163)

Number of User Auth Pub Keys: 3
Key Index User ID          Digest

1          4             FEED9DB1ECC95630EF957351389ECF118371E0E6
2          0             A2FC3597729A800CAE96770FC29C64CF5EE70F9F
3          0             7BE72766A254542F393E017703FB1865C44D9D50