cloud-builders-community icon indicating copy to clipboard operation
cloud-builders-community copied to clipboard

RemoteBuilder: documentation about port 22

Open Philmod opened this issue 5 years ago • 5 comments

Affected builder image

remote-builder

Expected Behavior

The main build uses scp to copy files to the remote machine.

Actual Behavior

ssh: connect to host 35.238.52.245 port 22: Connection timed out

Additional Info

It's probably just a problem with the setup of the GCP project?

Philmod avatar Apr 10 '19 17:04 Philmod

Got the same problem.

callicles avatar May 09 '19 21:05 callicles

Same problem here. Is there any news about it?

vanessaperciballi avatar Jan 22 '20 10:01 vanessaperciballi

Hi, I had the same problem. In fact by default, the VPC firewall block any port of any instance.

I had a specific rule into the "vpc firewall rules" to allow port 22 for a specific network tag : remote-builder

and then add this tag into configuration of my cloud-build yaml like this:

 env:
   - 'INSTANCE_ARGS=--tags=remote-builder'

hope this helps,

jvexiau avatar Feb 13 '20 19:02 jvexiau

I created an ingress firewall rule 0.0.0.0/0 port 22 and still getting blocked. This is still broken.

kegobass avatar Apr 29 '20 20:04 kegobass

ssh: connect to host 35.xxx.xxx.xxx port 22: Connection refused

romiafrizal avatar Jul 28 '20 12:07 romiafrizal