SSH asks for password even after i copied the public key to the remote machines

Solution 1:

You are not being asked for the password for the remote host. You are being asked for the passphrase for the ssh key you created.

To fix the problem, supply the passphrase.

If you did not want a passphrase on your key, then you should no longer set one when you create the key. You can also remove it by setting an empty passphrase.