Posted By

iblis on 07/09/08


Tagged

mysql security ssh vnc


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jamesming
esritter


Securely access (e.g. firewall filtered) remote services through ssh tunnel


 / Published in: Bash
 

  1. Allows encryption between client and server
  2. Bypasses filtered port, if any on the standard port for the given service.
  1. # bind mysql standard port (3306) to given port (here: 8000) on localhost
  2.  
  3. ssh -N user@host -L 8000/127.0.0.1/3306
  4.  
  5. # bind vnc standard port (5900) to given port (here 8001) on localhost
  6.  
  7. ssh -N user@host -L 8001/127.0.0.1/5900

Report this snippet  

You need to login to post a comment.