I'm looking to access an open terminal, that is, opened locally on my machine, from a remote computer without using
screen. There's a few reasons for this, the simplest of which is that I keep landing up with a situation where I didn't plan ahead, run something big on my pc at work, go home and then want to check on it via ssh.
In essence I'm looking for a way to attach to the terminal already running on a computer and view its output.
Now, I know that there are a few threads out there that say you can't do this (such as this one ), and others that simply recommend
tmux (like this one, this one or this one). What I'm looking for is a way to directly access a running terminal process, or at the very least see the cached output of that terminal. I don't necessarily need to be able to enter commands in that terminal.
Is there a way to do this? Otherwise, any ideas on a hack that could work? I was thinking I could probably find a way to automatically log stdout, stderr and the commands to a file (perhaps a clever tweak on bash history that logs everything?)