Nohup is a command which prevents commands / scripts from stopping should we close a terminal window / SSH session.
How to Use Nohup to Run Linux Scripts Unattended : Read more
How to Use Nohup to Run Linux Scripts Unattended : Read more
$ autossh user@host -- screen -x -R -t "Title" -h 10000;
user@localhost:~$ ssh user@remote.host -- cat \~/.screenrc
# .screenrc
defscrollback 10000
startup_message off
# mouse scrollback:
termcapinfo xterm* ti@:te@
# window list:
hardstatus on
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G}"
# mouse can switch windows
mousetrack on
# prevent xoff
bind s split