Skip to content

Instantly share code, notes, and snippets.

@germanow
Created June 3, 2021 07:37
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 germanow/c3d9c2c25214c0a95e8eaecb4fc61871 to your computer and use it in GitHub Desktop.
Save germanow/c3d9c2c25214c0a95e8eaecb4fc61871 to your computer and use it in GitHub Desktop.
SSH tunnel for postgres
# Once you run the command, you’ll be prompted to enter the remote SSH user password.
# Once entered, you will be logged into the remote server, and the SSH tunnel will be established.
# link https://linuxize.com/post/how-to-setup-ssh-tunneling/
ssh -L 127.0.0.1:5432:127.0.0.1:5432 -p 2211 username@host.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment