Shortened link to this Gist: https://git.io/JPMB8
To use, run:
curl -L 'https://git.io/JPMBa' | bash -s -- sharedusername sharedpassword
Or if you only have wget
installed, run:
wget -qO- 'https://git.io/JPMBa' | bash -s -- sharedusername sharedpassword
Now, send the printed URL to the person you want to share your shell with, press ENTER and run:
tmux
You should now have a shared shell.