Skip to main content
A newer release of this product is available.

security login publickey modify

Contributors
Suggest changes

Modify a public key

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The security login publickey modify command modifies a public key and optionally its comment text.

Parameters

-vserver <vserver name> - Vserver

Specifies the Vserver for the user associated with the public key.

-username <text> - Username

Specifies the username for the public key. If you do not specify a username, the username 'admin' is used by default.

-index <integer> - Index

Specifies the index number of the public key. The index number of the public key can be found by using the security login publickey show command.

[-publickey <certificate>] - Public Key

Specifies the new public key. You must enclose the new public key in double quotation marks.

[-comment <text>] - Comment

Specifies the new comment text for the public key.

Examples

The following command modifies the public key at index number 10 for the user named tsmith of Vserver vs1.

cluster1::> security login publickey modify -vserver vs1 -username tsmith -index 10 -publickey
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDD+pFzFgV/2dlowKRFgym9K910H/u+BVTGitCtHteHyo8thmaXT
1GLCzaoC/12+XXiYKMRhJ00S9Svo4QQKUXHdCPXFSgR5PnAs39set39ECCLzmduplJnkWtX96pQH/bg2g3upFcdC6z9
c37uqFtNVPfv8As1Si/9WDQmEJ2mRtJudJeU5GZwZw5ybgTaN1jxDWus9SO2C43F/vmoCKVT529UHt4/ePcaaHOGTiQ
O8+Qmm59uTgcfnpg53zYkpeAQV8RdYtMdWlRr44neh1WZrmW7x5N4nXNvtEzr9cvb9sJyqTX1CkQGfDOdb+7T7y3X7M
if/qKQY6FsovjvfZD"