Site menu

CodeCook.io

  • Languages
    • C
    • C++
    • CSS
    • Git
    • HTML
    • Java
    • JavaScript
    • jQuery
    • PHP
    • Python
    • Ruby
    • Scala
  • ssh

Command line - Tunnel port over SSH to remote port

  • Default
  • Open port on localhost to remote postgress server

Allow access to remote postgres server on port 9000 on the local machine.

0
186
  • Share on Facebook
  • Share on Google+
  • Share on Twitter

SSH -L

ssh -L {{local_port}}:{{remote_address}}:{{remote_port}} {{username}}@{{server}}
c

Notes

last update: Feb. 18, 2017

Advertisement

This project is hosted on DigitalOcean, try it and support us

Related concept

  • Add public SSH key to remote server

Random task

  • Django check object exists
  • Array length
  • Change user
  • Get last element of array
  • Change git remote tracking branch
  • Blog
  • About
  • License