You can utilize the command below to copy your SSH key to a target machine:
ssh-copy-id -i ~/.ssh/mykey user@host
This command will log you into the specified server host, duplicate your keys onto the server, and set them up to provide access by appending them to the authorized_keys
file.
During this process, you may be prompted to enter a password or provide other forms of authentication for the server.
Remember, only the public key is transferred to the server. The private key must always remain confidential and should not be duplicated onto any other machine.