Open another terminal window with the same SSH session as original window
Perhaps this could help:
It is not installed by default on Ubuntu, but is provided in the repositories.
It is very useful:
ssh to a remote host and type
screen to enter a
Start whatever time consuming task you like, and then press Ctrl+A followed by Ctrl+C to create a new window in the screen session.
This will spawn a new shell where you can do what you want. Create even more windows using the same command.
To switch between two windows quickly, use Ctrl+A followed by Ctrl+A again. As you can see, Ctrl+A puts screen in command mode.
Ctrl+A Ctrl+D will detach from the screen session. You can then disconnect from the host and log in again later and use
screen -dr to resume your session.
To go to a specific
screen window, type Ctrl+A followed by a number.
Screen will exit when all active windows are closed (or the shells within have exited).
I got this from SSH and SFTP sessions.
tmux is an alternative to screen. http://www.sitepoint.com/tmux-a-simple-start/
Connect to your remote server with:
ssh -X [remote-host]
A terminal will appear on your local computer. From this terminal, you can run as many tabs or terminal windows as desired. They will all use the same
ssh connection and be connected to the remote machine.