Hello. If I run the script without a function using the paramiko library, then everything is ok, but if I use it to connect to the server via SSH and execute a command remotely, then the script runs, but ends: Process finished with exit code 0.
How do I prevent a script from terminating?
Answer 1, authority 100%
exit code 0 means that there were no errors and the script completely executed and exited on its own. Accordingly, this message should not be prevented, it indicates that everything worked fine.