carlessanagustin
2/28/2017 - 11:53 AM

SSH Tunnel

SSH Tunnel

#!/usr/bin/bash

SOURCE_PORT=8888
DESTINATION_PORT=5601
USER=myuser
REMOTE_HOST=10.0.0.1

ssh -L $SOURCE_PORT:localhost:$DESTINATION_PORT $USER@$REMOTE_HOST -N

# Then browse: http://localhost:$SOURCE_PORT