Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My intent is to have a local port that ultimately forwards to a mysql server on host However, is only accessible via (no root access), and I can't shell in to So mysql -h works fine from, but not my local Win7 computer (ssh is available via msysgit, cygwin, and a GUI program). How can I set things up so that if I run MySQL workbench, say, and point it to localhost:30000, it connects to

Difficulty: socat and ncat are not and will not be installed.

share|improve this question
up vote 2 down vote accepted

This is standard portforwarding if you are using ssh:


This says "create a local port 30000 that passes through the ssh session to and delivers any data on this port to on port 3306".

share|improve this answer
*groan* *punches self in face for being an idiot* – elhefe Jun 19 '12 at 23:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.