I run linux via VirtualBox on OS X. I do this by running my VM in a headless state and then sshing to the linux machine using port forwarding. Right now whatever is copied to my clipboard on my virtual machine I am able to paste on my remote ssh session, but not vice versa (copying from tmux copy mode). I have tried using the following tmux configurations:
setw -g mode-keys vi
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "tmux save-buffer - | ssh host pbcopy"
Unfortunately this is not working... Manually copying using my mouse works but tmux copy mode is more convenient. Any ideas?