NetApp SSH: Difference between revisions
No edit summary |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
Line 1: | Line 1: | ||
[[Kategorie:NetApp|SSH]] | [[Kategorie:NetApp|SSH]] | ||
== Prüfen, ob das SSH-Homedir /etc/sshd/<user>/.ssh existiert == | == Prüfen, ob das SSH-Homedir /etc/sshd/<user>/.ssh existiert == | ||
< | <syntaxhighlight lang=bash> | ||
nac*> priv set -q diag | nac*> priv set -q diag | ||
nac*> ls /etc/sshd/ | nac*> ls /etc/sshd/ | ||
Line 15: | Line 15: | ||
== Anlegen eines Verzeichnisses mit Mode 0700 == | == Anlegen eines Verzeichnisses mit Mode 0700 == | ||
< | <syntaxhighlight lang=bash> | ||
nac*> options wafl.default_qtree_mode | nac*> options wafl.default_qtree_mode | ||
wafl.default_qtree_mode 0777 | wafl.default_qtree_mode 0777 | ||
Line 24: | Line 24: | ||
== NDMPd Status prüfen / anschalten == | == NDMPd Status prüfen / anschalten == | ||
< | <syntaxhighlight lang=bash> | ||
nac*> ndmpd status | nac*> ndmpd status | ||
ndmpd OFF. | ndmpd OFF. | ||
Line 35: | Line 35: | ||
== Verzeichnis erzeugen durch kopieren des QTrees == | == Verzeichnis erzeugen durch kopieren des QTrees == | ||
< | <syntaxhighlight lang=bash> | ||
nac*> ndmpcopy /vol/vol0/__ /vol/vol0/etc/sshd/root/.ssh | nac*> ndmpcopy /vol/vol0/__ /vol/vol0/etc/sshd/root/.ssh | ||
... | ... | ||
Line 44: | Line 44: | ||
== SSH-Key /etc/sshd/<user>/.ssh/authorized_keys schreiben == | == SSH-Key /etc/sshd/<user>/.ssh/authorized_keys schreiben == | ||
< | <syntaxhighlight lang=bash> | ||
nac*> wrfile /etc/sshd/root/.ssh/authorized_keys | nac*> wrfile /etc/sshd/root/.ssh/authorized_keys | ||
ssh-dss AAA...== user@clienthost | ssh-dss AAA...== user@clienthost | ||
^C | ^C | ||
</source> | </source> |
Revision as of 17:03, 25 November 2021
Prüfen, ob das SSH-Homedir /etc/sshd/<user>/.ssh existiert
<syntaxhighlight lang=bash> nac*> priv set -q diag nac*> ls /etc/sshd/ . .. ssh_host_key ssh_host_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub ssh_host_dsa_key ssh_host_dsa_key.pub </source>
Anlegen eines Verzeichnisses mit Mode 0700
<syntaxhighlight lang=bash> nac*> options wafl.default_qtree_mode wafl.default_qtree_mode 0777 nac*> options wafl.default_qtree_mode 0700 nac*> qtree create /vol/vol0/__ nac*> options wafl.default_qtree_mode 0777 </source>
NDMPd Status prüfen / anschalten
<syntaxhighlight lang=bash> nac*> ndmpd status ndmpd OFF. No ndmpd sessions active. nac*> ndmpd on nac*> ndmpd status ndmpd ON. No ndmpd sessions active. </source>
Verzeichnis erzeugen durch kopieren des QTrees
<syntaxhighlight lang=bash> nac*> ndmpcopy /vol/vol0/__ /vol/vol0/etc/sshd/root/.ssh ... Ndmpcopy: Transfer successful [ 0 hours, 0 minutes, 20 seconds ] Ndmpcopy: Done nac*> qtree delete /vol/vol0/__ </source>
SSH-Key /etc/sshd/<user>/.ssh/authorized_keys schreiben
<syntaxhighlight lang=bash> nac*> wrfile /etc/sshd/root/.ssh/authorized_keys ssh-dss AAA...== user@clienthost ^C </source>