echo -n something | ssh my-mac pbcopy
then I can paste on my phone.
Disclaimer: I wrote it
[1] https://stackoverflow.com/a/30578507/5094001