Skip to content

Instantly share code, notes, and snippets.

@jlongman
Created May 11, 2015 21:23
Show Gist options
  • Save jlongman/3296008414b127630976 to your computer and use it in GitHub Desktop.
Save jlongman/3296008414b127630976 to your computer and use it in GitHub Desktop.
VirtualBox and socat
boxsocket=$1
#boxpty=$2
# host pipe
socat UNIX-CONNECT:$boxsocket TCP-LISTEN:8040 &
telnet localhost 8040
# host socket
socat UNIX-CONNECT:/tmp/$boxsocket PTY,link=$boxpty &
screen $boxpty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment