Use something like tmux or screen. These programs will start a console session that can be attached to from any ssh connection or local terminal. Additionally, they let you open multiple console sessions inside the same parent screen/tmux session, allowing you to interact with multiple shells and console programs over a single connection.