First start screen as it starts a new shell:
screen
You can now disconnect from that ssh session, as the processes in that screen shell continues to work.
Reconnect to screen shell by establishing new ssh connection and typing:
screen -r
this reestablishes screen shell and you can continue your work where you stopped when disconnected.