Connection sans mot de passse aux les baies Netapp
mardi 2 avril 2013
par
popularité : 3%
par
popularité : 3%

Hypothèse :
la baie netapp a pour nom "filer0"
Création d’une clès ssh de type rsa
$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/robert/.ssh/id_rsa) : Enter passphrase (empty for no passphrase) : Enter same passphrase again : Your identification has been saved in /home/robert/.ssh/id_rsa. Your public key has been saved in /home/robert/.ssh/id_rsa.pub. The key fingerprint is : 01:9c:53:b0:37:0d:43:1b:e7:a8:81:aa:1a:65:93:ee robert@SIE-008826 The key’s randomart image is : +—[ RSA 2048]----+
.o=* . |
.+o X |
. o.* o |
o + o |
* . S |
= . |
o . |
.o |
. E |
+-----------------+
Vérification de l’arborescence :
$ mkdir -p /a/filer0
$ mount filer0 :/vol/vol0 /a/filer0/
Si besoin, créer le dossier suivant sur DataONTAP : /etc/sshd/<username>/.ssh
via : mkdir –p /a/filer0/etc/sshd/<username>/.ssh Par exemple : mkdir –p /a/filer0/etc/sshd/root/.ssh
Ajouter la clé dans le fichier authorized_keys
cat /.ssh/id_rsa.pub >> /a/<nom_controleur>/etc/sshd/<username>/.ssh/authorized_keys
Par exemple : cat /.ssh/id_rsa.pub >> /a/filer0/etc/sshd/root/.ssh/authorized_keys
Vérification :
$ ssh root@filer0 vol status | awk ’NF > 4 print $1’ |sort
vol0 Vol1 Vol2 ...