It checks if the remote has tmux first though:
function ssht() { /usr/bin/ssh -t "$@" "which tmux 2>&1 > /dev/null && tmux -u -CC new -A -s default" } alias ssh=ssht
It checks if the remote has tmux first though: