There was a requirement for password ssh during one of my project and I achieved the same by using the following commands.
$ssh-keygen
$ssh-copy-id
When above command will execute, it will ask for password.
After successful execution of ssh-copy-id when you do $ ssh it will be password less.