ssht is a shortcut right into your tmux session on a remote computer.
You can use ssht just like ssh itself. E.g.
ssht root@your_remote_computer.com will connect you to your remote computer via
ssh, but instead of simply dropping you to a shell,
ssht tries to connect you to a running tmux session on the remote computer. If there is no tmux session ssht creates one. No magic, but very handy.
Installation on OS X
brew tap brejoc/tap && brew install ssht
Installation on Linux
You can either copy
ssht somewhere into your
~/bin) or create your own package with fpm. You can find the Makefile here in the GitHub repository. Depending on your flavour Linux you just have to run
make package_deb or
make package_rpm and then install the generated package.