How to keep processes running after ending ssh session

Then you are running a program in a remote server over telnet, ssh, etc, the program will be killed when your connection is closed.

A way to avoid it is using the screen program:

$ screen

$ ./my-app

Ctrl-A and then Ctrl-D

$ exit

You can reconnect to the server you can attach back to your application using the command:

$ screen -r


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s