This command should be run on the local machine. gcloud compute ssh [user@]machineName -- -NL LOCALPORT:localhost:REMOTEPORT