Borderline ServerFault question, but I\'m programming some shell scripts, so I\'m trying here first :)
Most *nixes have a command that will let you pipe/red
Found a great solution that doesn't require a reverse ssh connection!
You can use xclip on the remote host, along with ssh X11 forwarding & XQuartz on the OSX system.
To set this up:
+,)
ssh -X remote-host "echo 'hello from remote-host' | xclip -selection clipboard"