Associate a public key with an administrator account


For SSH public key authentication, you must associate the public key with an administrator account before the account can access the SVM. You can use the security login publickey create command to associate a key with an administrator account.

What you’ll need
  • You must have generated the SSH key.

  • You must be a cluster or SVM administrator to perform this task.

About this task

If you authenticate an account over SSH with both a password and an SSH public key, the account is authenticated first with the public key.

  1. Associate a public key with an administrator account:

    security login publickey create -vserver SVM_name -username user_name -index index -publickey certificate -comment comment

    For complete command syntax, see the worksheet.

    The following command associates a public key with the SVM administrator account svmadmin1 for the SVM engData1. The public key is assigned index number 5.

    cluster1::>security login publickey create -vserver engData1 -username svmadmin1 -index 5 -publickey
    "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAspH64CYbUsDQCdW22JnK6J