If you already have an SSH key pair, you can skip this step. To generate a new SSH key pair, run the following command in your terminal:

ssh-keygen -t rsa -b 4096 -C "[email protected]"

Then:

ssh-copy-id remote_username@server_ip_address

Copy A Specific Key

ssh-copy-id -i ~/.ssh/id_rsa remote_username@server_ip_address