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

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

1. Allows encryption between client and server
2. Bypasses filtered port, if any on the standard port for the given service.

Copy this code and paste it in your HTML
  1. # bind mysql standard port (3306) to given port (here: 8000) on localhost
  3. ssh -N user@host -L 8000/
  5. # bind vnc standard port (5900) to given port (here 8001) on localhost
  7. ssh -N user@host -L 8001/

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.