Change port forwarder to socat

This commit is contained in:
2018-11-01 03:17:46 +08:00
parent 9c3552d9b9
commit 8a7302ecc2
3 changed files with 7 additions and 6 deletions

View File

@ -6,6 +6,6 @@ sleep 3s
while true
do
ssh -o "ExitOnForwardFailure yes" -NL 2200:192.168.80.240:22 localhost
socat TCP-LISTEN:22,fork TCP:192.168.80.240:22
sleep 1s
done