UPDATE - using ssh-copy-id is easier. See this page: http://serverfault.com/questions/241588/how-to-automate-ssh-login-with-password
You know you can connect to a host with ssh by typing a password when requested. However it is usually easier, especially for a scripted environment, to run ssh without having to type the password. This also keeps the user password safe.
ssh-keygen
If you still get a password prompt, try to correct these items: