You can use tmux or screen!
the above are software applications that can be used to multiplex several virtual consoles, allowing a user to access multiple separate terminal sessions inside a single terminal.
That's how you can use tmux to achieve what you are looking for:
- Install
tmux
(in a MAC, tmux does not come installed by default) - start tmux by typing
tmux
- call the process you want to survive a log off inside the tmux session
- detach the tmux session by typing Ctrl-B and then D
You can now disconnect from the remote machine and when you connect back again you can use tmux attach
to attach to your tmux session and resume your work.
PS: You can install tmux by downloading the source and building it yourself: