Leaving a service/script running even after finishing the ssh session

Problem
You want to run a service/script on a server that you have logged in with ssh, but you want to leave it running even after you have terminated the ssh session.

Solution
Use the nohup command so do the following in your ssh session: