This can be done with a program called "screen".
On the SSH session, you can start an instance of screen by simply running the command "screen".
On the host machine, you can open the same instance of screen by running the command "screen -x".
Now, you should both be able to type in the same window. Hope this helps.