SSH tunnel to local port

/ Published in: Bash
Save to your folder(s)

To connect to your database remotely, tunnel in via SSH.

This creates an encrypted tunnel to your Slice’s mySQL port (3306) on your local port of 8888. Point your local admin/GUI app to localhost:8888. If this does not work, and you are running OS X with CocoaMySQL try pointing it to instead.

Copy this code and paste it in your HTML
  1. ssh -fNg -L 8888: userName@remoteHost -p port#


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.