Steps
-
run this command locally: ssh-copy-id -i $LOCAL_PUBLIC_KEY_FILEPATH $HOST_USERNAME@$HOST
-
you will be prompted, enter the remote user password
Notes
If you don't already have a key identity, you need to generate one.
If the key is called the usual id_rsa you can omit the $LOCAL_PUBLIC_KEY_FILEPATH