Today I learned that `ssh` interacts with stdin/stdout normally. So you can pipe data from machine1 into a command on machine2!
For example, my local machine is a Mac that uses `pbcopy` to put stuff on the clipboard. Ex:
$ echo 'foo' | pbcopy
puts "foo" on my clipboard. If I'm ssh'ed in to a remote machine & I'm running sshd locally, I can do
$ echo 'foo' | ssh myLocalMachineIP pbcopy
and that puts the output of the script from the remote machine onto my local clipboard!
@darius whoa, i've often wanted exactly to be able to use pbcopy and pbpaste on my linux vm, and now i can!