Created
November 15, 2016 20:35
-
-
Save meeuw/097ddf281b0fa61356e84700276c335c to your computer and use it in GitHub Desktop.
ipython kernel tunnel script
This file contains hidden or 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/bash | |
scp $1 $2: | |
ssh $(grep _port $1|sed 's/^[^:]*: \([^,]\+\).*/\1/'| | |
while read PORT ; do | |
echo -R $PORT:localhost:$PORT | |
done) $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment