Created
March 1, 2021 15:52
-
-
Save BenSlabbert/8994456e1864e19eb40783a3ef27ea82 to your computer and use it in GitHub Desktop.
port forward the local port on an ec2 instance to local machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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