It's often useful to be able to SSH to other machines without being prompted for a password. Additionally, if you are using tools such as Parallel SSH you will need to set up Public Key SSH Authentication. To set it up is relatively straight forward:
On the client machine (i.e. the one you are SSH'ing from) you will need to create an SSH RSA key. So run the following command - ensure you don't supply a password:
This will generate the following files:
On the client machine tighten up file system permissions like so:
Now copy the public key to the machine you want to SSH and fix permissions. You will be prompted for the root password:
You can also use the utility ssh-copy-id to do the above steps. If you don't have scp on the remote machine you will need to install it:
You should now be able to ssh directory from node01 to node02 without providing a password:
Note: There is a bug in CentOS 6 / SELinux that results in all client presented certificates to be ignored when SELinux is set to Enforcing. To fix this simply: