All posts by nouyang

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.

Installing MIT VPN (Cisco Anyconnect) on Ubuntu 18.04

I was recently trying to set up the MIT VPN and John Aleman provided these helpful instructions to me.

1. Download anyconnect:
https://ist.mit.edu/cisco-anyconnect
2. Untar the file:
tar -zxvf anyconnect-linux64-4.6.03049-predeploy-k9.tar.gz
3. Move to /opt (optional step)
mv anyconnect-linux64-4.6.03049 /opt/cisco_anyconnect
cd /opt/cisco_anyconnect

4. Install anyconnect libs
cd vpn/
sudo ./vpn_install.sh

5. Launch VPN
/opt/cisco_anyconnect/vpn/vpnui
The fill in boxes should have:

  • Connect to: vpn.mit.edu/duo
  • username: “Username without .mit.edu”
  • Password: Your kerberos
  • Second password: “push”

Then you need to use the duo authintication app on your phone to authenticate.
6. Profit
If someone finds an easier way, please tell me