Skip to content

Instantly share code, notes, and snippets.

@rduque1
Last active December 21, 2023 12:38
Show Gist options
  • Save rduque1/e693c248b230b831f03a5f5a45119cee to your computer and use it in GitHub Desktop.
Save rduque1/e693c248b230b831f03a5f5a45119cee to your computer and use it in GitHub Desktop.
ssh tunnel to DB when software does not support different cipher

ssh tunnel to a remote DB when software does not support different cipher

1. create ssh tunnel

ssh -p <ssh-port> -c <cipher_aes256-cb> -L 8888:<db-host>:<db-port_3306> <user>@<remote-host>

2. Open the application to connect to a DB

  • 2.1 use db host => localhost
  • 2.2 use db port => 8888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment