I'm always sad that OS X doesn't support ssh-copy-id natively.
ssh user@host "mkdir .ssh && cat >> .ssh/authorized_keys" < ~/.ssh/id_rsa.pub
(remove the mkdir if .ssh already exists)This works as well and is using nothing but the power of the unix shell and the concept of pipes.
ssh user@host "mkdir -p .ssh && cat >> .ssh/authorized_keys" < ~/.ssh/id_rsa.pub`brew install ssh-copy-id`