Last active
August 29, 2015 14:06
-
-
Save oakwhiz/be9d35e593b32ed1586a to your computer and use it in GitHub Desktop.
Tunnel SSH over Layer 2 Ethernet (rough sketch)
This file contains 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
#!/bin/sh | |
# Tunnel SSH over Layer 2 Ethernet (rough sketch) | |
# requires FIFOs, netcat, linkcat | |
testfun () { | |
read line | |
nc "${@}" < <(echo $line ; cat) | |
} | |
while true; do mkfifo SomeFifo ; lc -blah < SomeFifo | testfun -blah -w 90 127.0.0.1 22 > SomeFifo ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment