I am working with an embedded Linux system using a USB serial port as the system console. When I am local to it, I simply use a USB cable to my PC and run PuTTY, giving me an interactive console interface.
I want to do the same thing when I am remote, but don't know how. I would like to loop back the USB console cable to a USB host port on the same Linux machine. Once booted, I would like to be able to log in over the network with SSH and PuTTY, then do something to have the PuTTY login session redirect stdin and stdout to the console port. I want to be able to type command lines, sending them out the host serial port and into the console port. The results of running the command would come back out the console port and be echoed in my PuTTY SSH login session.
How do I do something like this? I have minicom installed.