Skip to content

Instantly share code, notes, and snippets.

@erangaeb
Last active April 4, 2016 11:08
Show Gist options
  • Save erangaeb/42017b20302b864b6835c3b4d9aa7b6c to your computer and use it in GitHub Desktop.
Save erangaeb/42017b20302b864b6835c3b4d9aa7b6c to your computer and use it in GitHub Desktop.
SSH port forward to remote postgres container
# example
ssh -L localhost:8888:172.17.42.1:15534 [email protected]
# 8888 : local listening port
# 172.17.42.1 : container ip(docker host)
# 15534 : container serving port
# pagero : remote host username
# 10.4.1.41 : remote host ip
# localhost is potional
ssh -L 8888:172.17.42.1:15534 [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment