It sounds like you want to use
GNU screen. screen is technically a window manager, that you can attach and detach a terminal whenever you wish.
For example, you could start a job running through screen on the remote server, detach your terminal, and then reconnect at a later time (from a different machine entirely, if you wish).