netapp 7-mode autologin

filer> license add bqoeazl
A nfs site license has been installed.
nfs enabled
filer> exportfs -io rw=10.10.0.50/24,root=10.10.0.50/24,nosuid /vol/vol0
linux# id
uid=0(root) gid=0(root) groups=0(root)
linux# mkdir /filer
linux# mount 10.10.0.100:/vol/vol0 /filer
linux# mount | grep 10.10.0.100
10.10.0.100:/vol/vol0 on /filer type nfs (rw,addr=10.0.10.100)
linux# cd $HOME/.ssh
linux# ssh-keygen -t dsa -b 1024
Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: ad:a2:eb:b8:70:b2:52:61:9e:f5:a6:11:fd:e7:5d:18 root@linux
linux# mkdir -p /filer/etc/sshd/root/.ssh
linux# cp id_dsa.pub /filer/etc/sshd/root/.ssh/authorized_keys
linux# chmod 600 /filer/etc/sshd/root/.ssh
linux# chmod 600 /filer/etc/sshd/root/.ssh/authorized_keys
linux# ssh 10.10.0.100 vol status
(answer 'yes' to the authenticity question. You now have automatic login on the filer and start scripting.)
filer> exportfs -u /vol/vol0

This entry was posted in netapp. Bookmark the permalink.

Comments are closed.