Skip to content

Instantly share code, notes, and snippets.

@thomaspoignant
Last active August 22, 2018 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomaspoignant/1ea6ae444cfd9e02c91a6dc774c1aa36 to your computer and use it in GitHub Desktop.
Save thomaspoignant/1ea6ae444cfd9e02c91a6dc774c1aa36 to your computer and use it in GitHub Desktop.
# This command allow to connect to a database threw a bastion
# dns.db.instance = dns to the db instance
# user = user to connect via ssh on the bastion
# dns.bastion = dns to connect the bastion
ssh -i /path/ssh_key/dev.pem -N -L 5432:dns.db.instance:5432 user@dns.bastion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment