by screen I mean the programm / tool screen.
with screen you run your shell independent from the access you have to the machine.
E.g. you compile your kernel which may last 30 minutes or longer. if your connection brakes in between to can not reaccess that session.
So you could start "screen" do your stuff inside, and recall it with "sreen -r" in case your ssh session broke.