After creating a public key, you can use the following command to copy it to a remote server and allow authentication without requiring a password.

$ ssh-copy-id <username>@<IP or hostname>