ONTAP 9.15.1 commands

security login publickey modify

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 and certificate.

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.

-application <text> - Application

Optionally specifies the application for which you are modifying the public key. Presently, the only supported values are ssh and service-processor . The default value for this parameter is ssh .

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

[-x509-certificate <text>] - Install/Modify/Delete X509 Certificate

This parameter is used to modify or delete an existing certificate.

Examples

The following command modifies the public key and certificate at index number 10 for the SSH 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" -x509-certificate modify
Enter certificate: Press <Enter> when done
-----BEGIN CERTIFICATE-----
MIIBYjCB6aADAgECAhRhhyz6AuV04M5nac2Pq+cdm4IRMzAKBggqhkjOPQQDAjAT
MREwDwYDVQQDDAhhYmhpamVlMjAeFw0yMjEwMTkxNzI4MzZaFw0yMjEwMjAwMDAw
MDBaMBMxETAPBgNVBAMMCGFiaGlqZWUyMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE
xNEN5jC3IjAvR0kwsAyKXw7aBLwNg5nvDC1D2bRLpbZkoLQ6hzyKZUEqA0ELlQla
u4yX9O1qiRIbMMclqMB1XYJywxOh+3uKOTM6Bz82/IZp4Oaa/4gYVtFRgStHTdPf
MAoGCCqGSM49BAMCA2gAMGUCMQDQIgdSrECuWJ76ZvfEDAvFlHnJHQtNz8zFl0lh
XRNzPlhpltEm6j5V6mPkRmJrmloCMGckXAVkmUCGFxU2e2ZvuKbL5BVCrE5iifet
ly3UApgBg8EgTO+hebMNz3i/Z4p+5w==
-----END CERTIFICATE-----"

The following command modifies the public key at index number 3 for the 'service-processor' user named 'joed' belonging to the Administrative Vserver.

cluster1::> security login publickey modify -vserver cluster1 -username joed -index 3 -publickey
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDYaIWUyYFtW+8xeCFgVg5OEM2P4m6mZvOBj7ES6TTUSIcYk4gaOyLcJNwm05Q+Op3tidvakx16ALCtkP9TBBWgHPwwHma0+z689ekK88myabMst12iwMR39OGmen2KKW7NJQwwWmed47tTkEi5VU1BfX3CAsXiw4jp1HuFYi2iuHUQDtN6MlL4ON51X2IYUvStH4N1UNn89bn3Q0l4UYFpFwF2ixIuR8Pm11bZvDy1yP4hpxmoisUpkwsmr/SJiBsX381Ogg3C+Gnthtqe5/xoYx2CCb93Ff2UqKQyf41MgK8P1gNpOt5Vns1LQ+K1S+fh4ZmtkmBwHvQEXwBKQgmb"
Top of Page