NetApp SSH: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
(Die Seite wurde neu angelegt: „[Kategorie:NetApp] == Prüfen, ob das SSH-Homedir /etc/sshd/<user>/.ssh existiert == <source lang=bash> nac*> priv set -q diag nac*> ls /etc/sshd/ . .. ssh_host_k…“)
 
No edit summary
Line 1: Line 1:
[Kategorie:NetApp]
[[Kategorie:NetApp]]
== Prüfen, ob das SSH-Homedir /etc/sshd/<user>/.ssh existiert ==
== Prüfen, ob das SSH-Homedir /etc/sshd/<user>/.ssh existiert ==
<source lang=bash>
<source lang=bash>

Revision as of 09:44, 14 November 2013

Kategorie:NetApp

Prüfen, ob das SSH-Homedir /etc/sshd/<user>/.ssh existiert

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

Anlegen eines Verzeichnisses mit Mode 0700

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

NDMPd Status prüfen / Anschalten

nac*> ndmpd status
ndmpd ON.
No ndmpd sessions active.

Verzeichnis erzeugen durch kopieren des QTrees

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/__

SSH-Key /etc/sshd/<user>/.ssh/authorized_keys schreiben

nac*> wrfile /etc/sshd/root/.ssh/authorized_keys
ssh-dss AAA...== user@clienthost
^C