1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Understanding SSH script limits
This guide relates to the execution of scripts launched via SSH on different types of machines.
No time limit
There is no predefined time limit for the execution of scripts launched via SSH, that is, the script can run as long as necessary. However, if the SSH session ends, the script will also be interrupted.
It is possible to launch scripts in the background to avoid this problem. In this case, the script will continue to run even if the SSH session is interrupted.
Other resources may be limited either by the machine's capacity or by the configuration (PHP scripts limited to 512 MB of memory, for example).
It is possible to modify these limits on Cloud Server type machines but in no case for shared hostings.