Created
August 28, 2014 12:55
-
-
Save jsarenik/d923058415e32de738fd to your computer and use it in GitHub Desktop.
SSH callback
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 | |
CSTRING=${1:-'user@my-machine'} | |
ssh -f $CSTRING -R 12345:localhost:22 "sh -c 'while true; do sleep 360; done'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment