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
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.