There are sometimes requirement on server side to keep background process from terminating. Follow following article to achieve it using tmux.

  1. ssh into the remote machine

  2. Start tmux by typing tmux into the shell

  3. Start the process you want inside tmux session. In this I will be running Cloud Commander cloudcmd.

cloudcmd
  1. Leave / Detach the tmux session by typing Ctrl+b and then d.

  2. List all tmux sessions by

tmux list-sessions
  1. Attach / Resume to a running session with
    tmux attach-session -t <session-name>