Skip to content

Instantly share code, notes, and snippets.

@BenSlabbert
Created March 1, 2021 15:52
Show Gist options
  • Save BenSlabbert/8994456e1864e19eb40783a3ef27ea82 to your computer and use it in GitHub Desktop.
Save BenSlabbert/8994456e1864e19eb40783a3ef27ea82 to your computer and use it in GitHub Desktop.
port forward the local port on an ec2 instance to local machine
#!/bin/bash
# port forward port 5601 to localhost:5601
ssh -i id_rsa -L 127.0.0.1:5601:localhost:5601 ec2-user@some_ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment