This command will send the contents of the clipboard from your machine to the clipboard of machine 2.
pbpaste | ssh user@machine2 'pbcopy'



This command will send the contents of the clipboard from your machine to the clipboard of machine 2.
pbpaste | ssh user@machine2 'pbcopy'