For this procedure i would recommend login via console or through the SP and then ‘system console’.
First, enter in advanced mode:
filer> priv set advanced
Now, unlock and set a password to diag account:
filer*> useradmin diaguser unlock filer*> useradmin diaguser password
Enter in the systemshell, create the directory you need and put the pubkey generated in the authorized_keys file:
filer*> systemshell login: diag Password: the same you set in the previous step filer% mkdir -p /mroot/etc/sshd/root/.ssh filer% vi /mroot/etc/sshd/root/.ssh/authorized_keys filer% sudo chown -R root:wheel /mroot/etc/sshd/root filer% sudo chmod -R 0600 /mroot/etc/sshd/root
Then, exit systemshell, lock diag account and exit advanced mode:
filer% exit filer*> useradmin diaguser lock filer*> priv set admin