You can use the following command to copy your SSH public key to a Linux server.
ssh-copy-id -i ~/.ssh/id_rsa.pub host_machine
However,
if a Linux server runs the SSH deamon on a non default port (default is 22),
you have to specify the port with option -p port
.
In …