Log in as the user who's public key you want to transfer
$ cat ~/.ssh/*.pub | ssh -p 22 remoteuser@ip.add.re.ss "mkdir ~/.ssh; cat >> .ssh/authorized_keys" Change the details for the remote server
$ cat ~/.ssh/*.pub | ssh -p 22 remoteuser@ip.add.re.ss "mkdir ~/.ssh; cat >> .ssh/authorized_keys"
Don't forget to accept the remote server key