ONTAP Discussions
ONTAP Discussions
I am trying to load my ssh public key on a netapp instace but it seems that it does not allow me to add my key.
lcy2-dosvm01::security login publickey> load-from-uri -uri http://pastebin.com/raw.phpi=mgB0Vq3x -username sorins Error: command failed: invalid operation lcy2-dosvm01::security login publickey> load-from-uri -uri http://pastebin.com/raw.phpi=mgB0Vq3x -username citrite\sorins Error: command failed: entry doesn't exist lcy2-dosvm01::security login publickey> load-from-uri -uri http://pastebin.com/raw.phpi=mgB0Vq3x -username citrite\\sorins Error: command failed: invalid operation
I need to mention that my username used to login is citrite\\sorins because that's an AD account. The double backslash is required for bash, but I tried various options and it seems that the NetApp gives an useless error, like "invalid operation".
Have you already created the user(login method entry, exactly) for ssh publickey authentication? Check "security login show".
Hi,
what's the output of:
security login show -username sorins
M.
lcy2-dosvm01::> security login show -username sorins Error: "show" is not a recognized command
Hi,
don't run the command in the context of the svm.
sv98hbb1114::> security login show
Error: "show" is not a recognized command
sv98hbb1114::> exit
sg98hbb1054::> security login show
Vserver: sg98hbb1054
Authentication Acct
User/Group Name Application Method Role Name Locked
---------------- ----------- -------------- ---------------- ------
...
M.
I am having the same issue. I get "Error: command failed: entry doesn't exist" with any formulation of my AD username, including double quoted, single quoted, double backslashes, plain, etc. I have set up the user for other methods of authentication, and can log in fine by using the AD password, but I can not get publickey to work. I have modified the info below to remove PII.
netapp-cluster::> security login show -user-or-group-name domain\user
Vserver: netapp-cluster
Authentication Acct
User/Group Name Application Method Role Name Locked
---------------- ----------- -------------- ---------------- ------
domain\user http domain admin -
domain\user ontapi domain admin -
domain\user ssh domain admin -
3 entries were displayed.
netapp-cluster::> security login publickey create -username doman\user -index 0 -publickey "blah"
Error: command failed: entry doesn't exist
netapp-cluster::> security login publickey create -username doman\\user -index 0 -publickey "blah"
Error: command failed: entry doesn't exist
netapp-cluster::> security login publickey create -username 'doman\user' -index 0 -publickey "blah"
Error: command failed: entry doesn't exist
netapp-cluster::> security login publickey create -username "doman\user" -index 0 -publickey "blah"
Error: command failed: entry doesn't exist
netapp-cluster::>
After seeing a post about this here (http://serverfault.com/questions/729513/now-to-add-ssh-publickey-to-clustered-netapp-for-active-directory-user), I tried adding the authmethod to my user before adding the publickey, but that doesn't work either.
netapp-cluster::> security login create -user-or-group-name domain\user -application ssh -authmethod publickey -role admin -vserver netapp-cluster
Error: command failed: failed to set field "username" to "domain\user"
Username does not meet configured requirements:
Invalid character in username "\". Valid characters: A-Z, a-z, 0-9, ".", "_", and "-". Note that the username cannot start
with "-".
netapp-cluster::> security login create -user-or-group-name domain\\user -application ssh -authmethod publickey -role admin -vserver netapp-cluster
Error: command failed: failed to set field "username" to "domain\\user"
Username does not meet configured requirements:
Invalid character in username "\". Valid characters: A-Z, a-z, 0-9, ".", "_", and "-". Note that the username cannot start
with "-".
netapp-cluster::> security login create -user-or-group-name "domain\user" -application ssh -authmethod publickey -role admin -vserver netapp-cluster
Error: command failed: failed to set field "username" to "domain\user"
Username does not meet configured requirements:
Invalid character in username "\". Valid characters: A-Z, a-z, 0-9, ".", "_", and "-". Note that the username cannot start
with "-".
netapp-cluster::> security login create -user-or-group-name "domain\\user" -application ssh -authmethod publickey -role admin -vserver netapp-cluster
Error: command failed: failed to set field "username" to "domain\\user"
Username does not meet configured requirements:
Invalid character in username "\". Valid characters: A-Z, a-z, 0-9, ".", "_", and "-". Note that the username cannot start
with "-".
netapp-cluster::>