Automatically start or attach tmux in SSH session https://jpmens.net/2019/04/28/automatically-start-or-attach-tmux-in-ssh-session/
@jpmens with tmux I simply use:
tmux new -As SessionName
screen -ADRU SessionName
To avoid typing command I use ssh.sh shell script which basically executes tmux on remote machine :-) will need to polish it a bit to decide on its own if it should use tmux or screen.
social.tomica.me is one server in the network