Here is a much easier command to get your key added to an authorized keys file on a remote server.
~$ ssh-copy-id username@remotehost.local
Here is a much easier command to get your key added to an authorized keys file on a remote server.
~$ ssh-copy-id username@remotehost.local