Skip to content

Instantly share code, notes, and snippets.

View thom-vend's full-sized avatar
🤿

Thom'H thom-vend

🤿
  • Auckland, New Zealand
  • 15:04 (UTC +13:00)
View GitHub Profile
@thomsh
thomsh / ssh-tunnel-jump.md
Created October 31, 2019 14:53
SSH tunnels and jump memo

SSH Tunnel/jump memo for sweet devs :)

SSH tunnels

The basic LocalForward

Goal : let you access to a private port, example a database listening on 127.0.0.1 only on the remote server
SSH -L <choose a localport on your laptop>:<destinationip>:<destinationport> me@myserver
Example with the database:
ssh -L 50000:127.0.0.1:5432 me@server
or with a remote database
ssh -L 50000:123.254.99.21:3306 me@server