返回 首页

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:

socat pty,link=$HOME/ttyFAKE,raw,echo=0 - | ssh user@host "tee /dev/ttyREAL"

socat will create the device for you.

https://unix.stackexchange.com/a/290986



评论(0)

登录