I am logged in to host A.
I want to ssh to host B without giving a password.
I run ssh-keygen on A.
I copy-paste the public key file to B.
I attempt ssh from A to B. B asks for password.
What am I doing wrong?
(Leave aside that not using ssh-agent and passphrases is insecure.)