Use a termial multipexer like (assuming your host is on Linux) screen or tmux. The advantage: If your connection is lost, the command runs on and you can even reattach it in a later ssh session.
See https://wiki.ubuntuusers.de/Screen/ for handling screen.
Have a nice day!