After SSH logout all the processes running are terminated.
To keep a process running you can use the "screen" command as follows (command sequence in a linux terminal):
- ssh user@server (SSH login as usual)
- screen
- Now we can launch the command we want to keep alive
- Ctrl+a D (this command detach the current terminal and logout)
Now we can close the SSH connection and the process will keep running.
To resume the detached shell we can simply login using SSH and then run the command:
- screen -r
Nessun commento:
Posta un commento