ssh, tmux, and mouse select for copy-paste: Make sure X forwarding enabled!

Ohhh I’m a dum-dum.

I was struggling for a full 30 mins to an hour trying to be able to get copy and paste working over tmux. I already had some settings for it in tmux.conf and was wondering why nothing I tried was working.

What I wanted to be able to do:

Remote in tmux: mouse click – drag – select – text in a pane in tmux (over ssh).
Local: Paste into a notepad

TURNS OUT MY SSH SESSION, I WAS NOT FORWARDING X, SO OF COURSE XSEL AND XCLIP DON’T WORK.

Ugh.

ssh -X user@127.0.123.10

Editing my ~/.ssh/config file to

ForwardX11 yes

right the heck now.