SSH

Make SSH tunnels

1
ssh -L <client-port>:<internal-host-ip>:<host-port> host

The tunnels are useful to connect to remote services like:

  • Databases not exposed to internet:
    • Mongodb ssh -L 0.0.0.0:27017:127.0.0.1:27017 databasehost

Comments

⬆︎TOP