Create a virtual serial port that relays data over ssh

I’m not totally sure about the first part of the pipe you give as an example, but if you can somehow configure the program that writes to a serial port to use your fake serial port, you can simply write: […]