The example consists of 3 nodes , the node,tracker1 and tracker2 . The purpose of the example is to show how to setup ssh in order to login to other nodes with out a password .
Do for all
===============
mkdir ~/.ssh
chmod 755 ~/.ssh
/usr/bin/ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 644 ~/.ssh/authorized_keys
exec /usr/bin/ssh-agent $SHELL
/usr/bin/ssh-add
from node
==============
ssh hadoop@tracker2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh hadoop@tracker1 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
scp ~/.ssh/authorized_keys hadoop@tracker2:~/.ssh/.