Skip to content

Instantly share code, notes, and snippets.

Niccolo Dejito ncdejito

Block or report user

Report or block ncdejito

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ncdejito
ncdejito / gcloud-port-forward.md
Last active Mar 26, 2020 — forked from jibs/gcloud-port-forward.md
port forwarding with a google cloud instance
View gcloud-port-forward.md

Google cloud's ssh command lets you pass standard ssh flags. To, for example, forward local port 8088 to port 8088 on a vm instance, all you need to do is:

gcloud compute ssh cholo@api-test --ssh-flag="-L 8080:localhost:8080"  --zone "us-central1-a"

Now browsing to localhost:8088 works as it would with standard ssh.

You can’t perform that action at this time.