For example, there is a script do.sh. I connect to the server via SSH and run the script for execution:
~/do.sh
The problem is that if you disconnect from the server or the connection is broken, the script execution will stop. How to make the script run further if I disconnect from the server or disconnect occurs?