#!/bin/sh set -- -t -o ServerAliveInterval=15 "$@" cmd='tmux attach || tmux new || screen -dRU' exec sshloop "$@" "$cmd"