Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash -x
- #
- # Usage:
- # sshtun gpu01
- # sshtun gpu02 -t docker run -it --rm -p 48888:8888 -p 46006:6006 tensorflow/tensorflow:1.12.0-py3
- #
- PORT1=6006
- PORT2=8888
- FORWARD1=46006
- FORWARD2=48888
- # Fixme
- GATEWAY=username@gateway.address
- ssh -L $PORT1:localhost:$FORWARD1 -L $PORT2:localhost:$FORWARD2 $GATEWAY -t \
- ssh -L $FORWARD1:localhost:$FORWARD1 -L $FORWARD2:localhost:$FORWARD2 \
- $@
Add Comment
Please, Sign In to add comment