Skip to main content
Delphix

Error "Cannot Set Objects Directly, Set Individual Members or Use 'Edit' Instead” When Setting PublicKey (KBA4250)

 

KBA

KBA# 4250

 

Troubleshooting "Cannot set objects directly, set individual members or use 'edit' instead" when setting publicKey

If setting the publickey and following documentation 

https://docs.delphix.com/docs/developer-s-guide/command-line-interface-guide/cli-cookbook-common-workflows-tasks-and-examples/cli-cookbook-authentication-and-users/cli-cookbook-configuring-key-based-ssh-authentication-for-automation

you will get the following error:

DE> user current 
DE user 'delphix_admin'> update 
DE user 'delphix_admin' update *> set publicKey
DE user 'delphix_admin' update *>Cannot set objects directly, set individual members or use 'edit' instead.

Resolution

To resolve the Error: "Cannot set objects directly, set individual members or use 'edit' instead" when setting publicKey

Complete the following procedure:

  1. Login to the CLI as the delphix_admin user.
  2. Enter the following at the prompt:
DE> user current 
DE user 'delphix_admin'> update 
DE user 'delphix_admin' update *> set publicKey=“<enter key eg. ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAjdQYr1WU6UPr6FZqyt3eKNJEkAi0bmkj6nHQ== rsa-key-20160309”
DE user 'delphix_admin' update *>commit