Created
January 16, 2020 09:52
-
-
Save lzs/0c38bf4ba6e3690359e8463cd2517f47 to your computer and use it in GitHub Desktop.
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 | |
# Replace IP below as needed | |
PROXYUSER=user | |
PROXYIP=123.123.123.123 | |
if pgrep -f $PROXYIP > /dev/null 2>&1; then | |
exit | |
fi | |
if test -f nohup.out; then | |
rm nohup.out | |
fi | |
nohup \ | |
ssh -R 8888:localhost:8888 -R 8889:localhost:8889 -R *:8022:localhost:22 \ | |
$PROXYUSER@$PROXYIP ./sleep.sh & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment