August 30, 2011

simple telnet server by using socat

On server side:

./socat exec:'bash -li',pty,stderr,setsid  tcp-listen:8999,reuseaddr

On client side:

./socat tcp-connect:127.0.0.1:8999 file:`tty`,raw,echo=0

1 comment:

  1. Perfect, just what I was looking for. Thanks.

    Aaron Moate
    CHTC Infrastructure Team

    ReplyDelete