My wrapper around ssh used on daily basis:
1. checks if the remote server has screen installed
2. if yes, checks if there are some my detached sessions
3a. if yes, attach the oldest detached session
3b. if no detached sessions, create new session with sudo to root...