Use the built-in ssh-copy-id
command to copy keys to servers.
Note: make sure you have enabled password authentication on the server ssh server configuration, first!
ssh-copy-id -i ~/.ssh/mykey user@host
Now on your server edit the sshd_config
typically at /etc/ssh/sshd_config
as root to remove PermitPasswords
.