Created
August 10, 2025 18:08
-
-
Save aguinet/b9f441c70d0519dd0c401f3f286c47da to your computer and use it in GitHub Desktop.
socat server shell with tty support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Server | |
| $ socat TCP-LISTEN:1111,reuseaddr,fork,bind=127.0.0.1 EXEC:"/bin/sh -i",pty,stderr,setsid,sigint,sane | |
| # Client | |
| $ socat file:`tty`,raw,echo=0 TCP:localhost:1111 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment