transfer public key to server code example
Example 1: copy my ssh key
clip < ~/.ssh/id_rsa.pub
Example 2: copy ssh key to remote server
ssh-copy-id -i ~/.ssh/mykey.pub user@host
clip < ~/.ssh/id_rsa.pub
ssh-copy-id -i ~/.ssh/mykey.pub user@host