# You can connect to the remote screen or tmux directly ssh user@host -t 'tmux a -t session_name||tmux new -s session_name'