Created
August 19, 2016 17:10
-
-
Save erichnascimento/86c468d62c5e31a186ddafa3bb1060ea to your computer and use it in GitHub Desktop.
Bind Vagrant port to host port
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
# List the Vagrant config to get ip address and key path | |
$ vagrant ssh-config | |
# Bind port | |
$ sudo ssh -L 0.0.0.0:80:<vagran-ip>:80 -i <path-to-listed-private-key> -p 2222 -N vagrant@localhost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment