Skip to content

Instantly share code, notes, and snippets.

@meeuw
Created November 15, 2016 20:35
Show Gist options
  • Save meeuw/097ddf281b0fa61356e84700276c335c to your computer and use it in GitHub Desktop.
Save meeuw/097ddf281b0fa61356e84700276c335c to your computer and use it in GitHub Desktop.
ipython kernel tunnel script
#!/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