# ssh without password using NFS home directory share ###### tags: `linux` `ssh` `nfs` Example for ssh no password with NFS home directory share I used to setup this for a testing cluster by sharing the home directory of master node to all other slave nodes. So the master can direct ssh to all slaves without password and store all test result data in the master node. ``` 1. NFS & SSH Installation [Server] : apt-get install nfs-kernel-server apt-get install openssh-server [Client] : apt-get install nfs-common apt-get install openssh-server 2. NFS Configuration [Server] : /etc/exports /home/ycheng 192.168.1.0/24(rw,async,no_root_squash,no_subtree_check,fsid=0) [Client] : /etc/fstab 192.168.1.254:/home/ycheng /home/ycheng nfs rw,bg,soft,intr 0 2 3. Restart NFS [Server] : /etc/init.d/nfs-kernel-server restart 4. Configure SSH [Server] : ssh-keygen -t rsa -N "" cp /home/ycheng/.ssh/id_rsa.pub /home/ycheng/.ssh/authorized_keys /etc/init.d/ssh restart 5. Other Configuration set node name and ip mapping in /etc/hosts ```