{"id":118,"date":"2014-06-10T08:54:10","date_gmt":"2014-06-10T06:54:10","guid":{"rendered":"http:\/\/www.lambiek.eu\/blog\/?p=118"},"modified":"2014-11-28T18:59:36","modified_gmt":"2014-11-28T17:59:36","slug":"netapp-c-mode-publickey-authentication","status":"publish","type":"post","link":"https:\/\/www.lambiek.eu\/blog\/tutorial\/netapp-c-mode-publickey-authentication\/","title":{"rendered":"netapp c-mode publickey authentication"},"content":{"rendered":"<p>To allow publickey authentication for a user you first need to create a login using:<\/p>\n<pre class=\"nums:false lang:default decode:true \" >\r\nfiler::> security login create -username myuser -application ssh -authmethod publickey -profile admin\r\n<\/pre>\n<p>Then you need to add the public key to this login:<\/p>\n<pre class=\"nums:false lang:default decode:true \" >\r\nfiler::> security login publickey create -username myuser -index 0 -publickey \"ssh-rsa etc etc etc\"\r\n<\/pre>\n<p>If you try to create a public key for a not existing login you will receive an error message like:<\/p>\n<pre class=\"nums:false lang:default decode:true \" >\r\nError: command failed: entry doesn't exist\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To allow publickey authentication for a user you first need to create a login using: filer::> security login create -username myuser -application ssh -authmethod publickey -profile admin Then you need to add the public key to this login: filer::> security login publickey create -username myuser -index 0 -publickey &#8220;ssh-rsa etc etc etc&#8221; If you try &#8230; <span class=\"more\"><a class=\"more-link\" href=\"https:\/\/www.lambiek.eu\/blog\/tutorial\/netapp-c-mode-publickey-authentication\/\">[Read more&#8230;]<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14,4],"tags":[15],"_links":{"self":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/118"}],"collection":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":7,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":188,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/118\/revisions\/188"}],"wp:attachment":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}