Copy data from the terminal to your clipboard using pbcopy: For example, copying a ssh key: copy-to-clipboard.shCopycat my-ssh-key.pub | pbcopy