“ssh without password” is a must for many cluster solutions. I encountered this when I started to play with apache spark. The following is how:
ssh-keygen [enter enter]
This will generate id_rsa and id_rsa.pub. Next, we will put the public key to a slave. Luckily, ssh-copy-id is the tool to do the job.
ssh-copy-id -i ~/.ssh/id_rsa.pub [slaveIP e.g. 1. 2. 3. 4.]
Now we should be able to ssh ‘remote IP’ without ip using current username.